Best way to lock an actor to a position?

DrGlickertDrGlickert Member Posts: 1,135
edited November -1 in Working with GS (Mac)
I'd like for my character to move left and right, but not Up and Down. Also, I'd like for the actor to not move outside of the screen on the left and right side...

Whats the best way to accomplish this? (I tried putting collisions on with the walls but my player bumps up against it and bounces off a lot).

I do want a slight bit of overlap, so I figure there has got to be a max/min along the X axis???

Comments

  • heathccheathcc Member Posts: 113
    One way is to use Constrain Attribute to keep the actor at a specific X value.

    However, based on the general nature of your question I suggest that you go through the platformer tutorial.
Sign In or Register to comment.