PDA

View Full Version : How to do stuff with the scenes using the "If(condition



A guy
October 21st, 2001, 08:35 AM
How can I do something like:
If some guy presses a button in scene 1 and after that presses another button and goes to scene 2 then scene 2 appears but if he hadn't pushed the button in scene 1 ,before he went to scene 2, then scene 2 wouldn't have appeared




_______________________________________
visit my homepage at www.hot.ee/syko (http://www.hot.ee/syko)

suprabeener
October 21st, 2001, 10:09 AM
button 1:

on(release){
&nbsp &nbsp &nbsp &nbsp _root.button1pressed=1;
}

the if statement:

if(_root.button1pressed){
&nbsp &nbsp &nbsp &nbsp ...do this...
}else{
&nbsp &nbsp &nbsp &nbsp ...do that...
}

sensical?

A guy
October 21st, 2001, 10:58 AM
...yes very...
thanx man...