Scitunes, It doesn't work for me.

DanielAvniDanielAvni Member Posts: 114
edited November -1 in Working with GS (Mac)
I tried doing your move right and left idea but it doesn't work. what im trying to do right know is make it so when i hit the platfrom it accelerates, and theres a constant behavior accelerating down. when i try moving it moves like an inch and then stops and i have to keep pushing. Can u please help me with this?

(you must use accelerate not move or change velocity.

Here is a trick to get it to feel like move.

RULE (ALL)

When right key is pressed
self.linear.X < 250 (or whatever you have been setting the move rate to)

accelerate 0 degrees 2000 (you want this big so it gets to your desired speed instantly)

OTHERWISE

Change velocity to 0 relative to actor

---------------------------------

RULE (ALL)

when left is pressed
when self.linear.X is > -250

accelerate 1800 degrees 2000 (you want this big so it gets to your desired speed instantly)

OTHERWISE

Change velocity to 0 relative to actor

These rules will feel like move, but will work while jumping or falling.)

Comments

Sign In or Register to comment.