-
Two values
I have a movieclip, when u click it it makes thrust=true. Then if you click it again I want it to make thrust=false
I can make it make thrust=true, thats easy, but if you click it again it'll turn thrust=false, and then if you click it again it makes thrust=true and so on...
Please can someone help me, it's driving me crazy, I can't think.
I hope I explained my problem good enough.
-
Senior Member
Just need a simple if
Code:
if(thrust) { //if thrust is true
thrust = false;
}else{ //if thrust is false
thrust = true;
}
-
Code:
on (release) {
if (thrust == true) {
thrust = false;
//anything else
}
else if (thrust == false) {
thrust == true;
//anything else
}
}
joechilds@imap.cc
www.blackliquor.co.uk
-
Thank you very much for the quick responses.
-
Senior Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|