How to...Constrain actor movement

mdiak47mdiak47 Member Posts: 7
edited November -1 in Working with GS (Mac)
How do I create actors that are constrained to horizontal and vertical movement, when the user chooses either?

Any help is appreciated. Thank you.

Comments

  • VoidedSkyVoidedSky Member Posts: 1,095
    Attributes needed: self.X_Constrain
    self.Y_Constrain

    Horizontal:

    Change attribute self.X_Constrain to self.positionX

    Constrain attribute self. positionX to self.X_Constrain

    Vertical:

    Same as above, but with the Y attributes.

    Hope this helps!
  • mdiak47mdiak47 Member Posts: 7
    CowTechMan said:
    Attributes needed: self.X_Constrain
    self.Y_Constrain

    Horizontal:

    Change attribute self.X_Constrain to self.positionX

    Constrain attribute self. positionX to self.X_Constrain

    Vertical:

    Same as above, but with the Y attributes.

    Hope this helps!

    Thanks you VERY much!!!
  • VoidedSkyVoidedSky Member Posts: 1,095
    No prob man! Any time!

    One of the GS templets uses this,"Basic Table Tennis"

    ~CTM
Sign In or Register to comment.