Constrain movement & collision boxes

TraXsiv2TraXsiv2 Member Posts: 29
edited November -1 in Working with GS (Mac)
1. Is there away to only allow up and down movements only and constrain left and right movements. When my player hits into a block the block moves left or right a little bit. I want these blocks to only be able to move up and down when i need them to and at no time in my game i want them to move left or right.

2. is there a way to make the collision box of an actor smaller or larger.

Thank you

Comments

  • TraXsiv2TraXsiv2 Member Posts: 29
    thank you so much. for the constraints can I put Constrain attribute self.position.X to X, because I have multiple actors of this type spawning at different times
  • TraXsiv2TraXsiv2 Member Posts: 29
    Im sorry. Im new to this program. For the making a self attribute. I create a new attribute with "real" type. When i try to set the value to x it just sets it to 0. Im sorry, am I doing this right
  • TraXsiv2TraXsiv2 Member Posts: 29
    hmm... I understand the concept but it doesn't seem to work. Just to clarify, When I create the attribute. Do I create a "text" attribute and call it x and put in a value of real or do i create a "real" attribute and call it x because i for the "real" attribute i can only put in number values.
  • TraXsiv2TraXsiv2 Member Posts: 29
    alright thank you so much for the help
Sign In or Register to comment.