X accel + scene gravity = totally random gravity?
williamsonajm
Member Posts: 12
Hi all,
I'm having a slight issue with my would-be-platformer at the moment. I have the scene gravity set, ad my player 'falls' at one speed. However, if my player is moving left/right with accel then the speed he falls is MUCH faster. Plus if I'm standing still and try and jump, I will only jump Y high. However, again, if I am moving left/right then I will jump MUCH higher (usually off-screen high).
Why is this happening? How can I fix it?
Thanks!
I'm having a slight issue with my would-be-platformer at the moment. I have the scene gravity set, ad my player 'falls' at one speed. However, if my player is moving left/right with accel then the speed he falls is MUCH faster. Plus if I'm standing still and try and jump, I will only jump Y high. However, again, if I am moving left/right then I will jump MUCH higher (usually off-screen high).
Why is this happening? How can I fix it?
Thanks!
Comments
-->
|\
| \
\
`
But as for the jumping higher issue, it's just not consistant. One moment I'll jump a normal height, the next I'm launching myself WAY off screen...
Maybe I'll try velocities instead of accel... Hmm... :-P
I had a BOOL value to show if I was allowed to jump (i.e. I'm stood on something). I had two rules; one checking if I was allowed to jump (i.e. the BOOL value), and one checking if the player had pushed a jump button on screen. Previously, I had it checking if I was allowed to jump, and then if a button had been pushed = random jump height. Now I have them the other way around, it seems to be behaving itself. i.e. It now checks if someone has pushed the jump button, and if it has, it checks if the player is currently allowed to jump, and then it goes through the jump animation.
Anyway, just though I'd share the result...
If anyone is will to have a look at my GS file I'd be grateful! :-)