collide issue

PeeCeePeeCee Member Posts: 107
edited March 2012 in Working with GS (Mac)
Hi all.
I have an actor that when touched is movable in x direction only, being left and right . they are
restricted to side walls making this actor bounce etc etc , now i have another actor (actor 2) that i want to bounce of actor 1 however im seeing that when actor 2 is thrown at actor 1 , actor 1 is then thrown out of orbit and flies off screen. now remember actor 1 is slidable/movable in x positioning only where as actor 2 is both x and y . how can i make actor 1 stay locked in its Y position even if actor 2 collides with it.
I tried almost all possibilities however im sure you guys will educate me further.

much appreciated.

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    have you used Constrain Attribute and Constrain self.position.y to a specific value? that should be placed on its own outside of a rule.
  • MotherHooseMotherHoose Member Posts: 2,456
    actor1 moves left and right when touch is pressed? by touchDrag (constrain X) ???

    actor2 is a 'throwable' actor?
    actor2 collides with walls and actor1?

    @PeeCee … have you explored the GS template in New Section: Crazy Ball Wall Breaker?

    nice paddle and ball code/behavior there and that may help you …

    @};- MH
    "Games lubricate the body and the mind." — Benjamin Franklin
Sign In or Register to comment.