|
-
Elvis...who tha f**k is Elvis?
Well...the i++ works fine by itself, but when I try to mix the 2 expressions on the same variable, something weird happens!
What I tried was this:
in my hero MC I set the a var named _root.speed.
on enterFrame it says _root.speed ++;
everytime you press the right arrow it says _root.speed+=5;
which means that when you press right, it actually goes up by 6 (5+1)...
these numbers is set to affect my "powerbar" MC, which goes to a frame according to the speed. When I use the ++ it won't update, until after I release the key, but when I use += instead it updates all the time! ...I don't get it, but believe me there's a difference! Try it, and if it doesn't work, I will try posting some .swf's to show the difference!
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
|