|
-
Thanks for the input guys.
Hrmm - your ball will slow down if it's already moving in a negative direction (eg. - if speed is -7, adding 1 gives you -6)
I spent almost an hour trying to find out why the ball moved slower. I totally forgot I had negative speed. Of course the ball goes slower when the value approaches 0. 
Mental note: don't code when you're tired.
Hmm...that conditional code, that's a ternary operator right? I must do a bit of research first, that's new stuff for me.
Thanks for the help.
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
|