collide question

If I have an object inside of walls that bounces off the walls and I have another object that I want to use to navigate by that object how do I make it so that the when the objects hits the other object it doesnt move?
Answers
Change attribute self.motion linear vel. Y to 0
Change attribute self.motion ang vel. to 0
That should do it...
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
To have the object recognize that the blocks are there, have a Rule that says When actor overlaps or collides with BlockActor ... do something (e.g change an attribute).
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
The "When actor overlaps or collides with [another actor]" rule allows you to change an attribute such as game.TouchingBlock (boolean). You could have it change to true when overlapping and false when not (using the Otherwise section).
If you're trying to have actors touch but not bump each other, make sure their restitution is set to 0 and also make sure that their "Fixed Rotation" checkbox is checked. Finally, if they don't have to move with a Move behavior, also uncheck the "Movable" checkbox.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User