Gravity
Billyd1
Member Posts: 133
Hi , having trouble with gravity. Could someone give me a quick run through on how to put in in my game.
I want my character to walk on a platform and walk up sloped platforms without looking like its floating in mid-air.
Thanks
I want my character to walk on a platform and walk up sloped platforms without looking like its floating in mid-air.
Thanks
Comments
but when you press jump...place another acceleration up. Play with the value til you get what you want.
I think that will work...never tried it...but who knows.
I made a jump demo (search shared projects) that shows a way around this. Basically I use acceleration with a timer (like normal) for jumping and for right and left movement I have a rule that says:
When right is pushed AND
When self.linear.X is <250
Accelerate 0 degrees to scene
Speed 2000
New Rule
When left is down AND
self.linear.X is > -250
Accelerate 180 to scene
speed 2000
This method uses acceleration so it will feel natural when jumping and or falling. But the rules above mean that it will almost instantly reach a speed of 250. This will make it feel like using the move behavior. But again, it will work with jumping and falling where move does not work well.
http://gamesalad.com/wiki/how_tos:know_which_movement_to_use