This is how to do left and right movement properly.

FrazzleFrazzle Member Posts: 223
edited November -1 in Working with GS (Mac)
I've seen in many GS platforming templates things like this:

When left is down
When Right is down
constrain linear x motion to 0

But you can make it much easier just by saying:

When left is down
When right is UP
constrain linear x attribute to -_
(and opposite for right movement)
This saves a rule and confusion to your game logic.

FM
Sign In or Register to comment.