Moving Issues
Stryfe01
Member Posts: 146
Hi guys. I'm having some issues with movement.
Problem #1: When my actor jumps, i am animating it after it receives an event from the keyboard (spacebar is down). But the animation stops and stays on the last frame when I depress the keyboard.
Problem #2: When my actor runs left, I have the same issue. But I also run into that he just floats on by after i let go of the right arrow key. I am using accelerate. should I be using move instead?
Problem #1: When my actor jumps, i am animating it after it receives an event from the keyboard (spacebar is down). But the animation stops and stays on the last frame when I depress the keyboard.
Problem #2: When my actor runs left, I have the same issue. But I also run into that he just floats on by after i let go of the right arrow key. I am using accelerate. should I be using move instead?
Comments
Problem #2: On the actor create a rule that when the left key is released, change attribute self.motion.X to 0.
Now for my problem:
Where on earth do you find the '#' button on a macbook pro keyboard?? I've used Mac's for ages but it's always puzzled me :?
#2, sorry new to Mac myself. I am using an imac and it's above the number 3 key. Have you tried using the function key and number 3? just a shot in the dark...
Thank for the tip. I'll give it a shot.
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
Now to make up for all the times that I have had to search for one to copy and paste!
However:
@Stryfe01 if #2 doesn't work. It should.
http://img42.imageshack.us/i/screenshot20100510at232j.png/
There is an image of what is happening on my actor when the left key is pressed.
########################