collision movement problem

tgunntgunn Member Posts: 19
edited May 2012 in Working with GS (Mac)
in my game i would like each of the mimics to move all the way to the right and left it seem that only only the other eade one touch the wall.
wall | A B B B A | wall
what is happening is when right A touches the left wall everything start to move to the right all the A and B's.
and the same with with the right A it touched the right wall and every bounces the opposite way.

what i would like to happen is the left A hits the left wall then goes right to the opposite wall and then do the same but the other letters continue traveling till they hit a wall. passing thru any letter till he gets to the other side moving back and forth. independent of the other letters. instead of working as a block unit.

i tried doing the moments in the editor window and unlocking each letter but that did not work.


thanks

Tommy

Answers

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Are your letter actors set to collide with other letter actors? How are you bouncing the actors off of the walls (what behavior(s) are you using)?

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • tgunntgunn Member Posts: 19
    better you take a look jessegunn.com/www/project/beta.zip

    and you can see what the problem is. don't know if it is the wall because even the guy who move if hit goes against the walls he starts spinning around. too.
  • tgunntgunn Member Posts: 19
    Any word yet?
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited May 2012
    @tgunn somehow I missed the thread update... sorry about that! Can you repost the file?

    You might also just try the following rule in each letter:

    When actor overlaps or collides with wall --> change attribute self.motion.linear velocity.x to self.motion.linear velocity.x*-1

    And see if that works for you.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.