Help With Collide, Walls
VoidedSky
Member Posts: 1,095
Hi, I have been looking through the forum, and all the games in game salad, and I can't figure out how to make the actor stop when it hits a wall or a background. It bounces, how do I make it just stop?
Thanks
Thanks
This discussion has been closed.
Comments
(Actor-->Physics-->Restitution)
On a side note, try using velocity rules instead of move rules. It is much easier to change.
I have some walls set up in a Brickbreaker-like game I'm working on, and the paddle at the bottom is supposed to stop when it hits them, but it keeps going. I've tried the fix above, implemented more or less like this:
Stop the Wall Rule
When Player collides or overlaps with actor of type Wall:
Change Attribute self.Motion.Linear Velocity.X To: 0
But the dude just keeps running through the wall. He was colliding and bouncing a lot before, so I made it not a physics thing as this thread suggested, but now I'm stuck again.
Thoughts?
It's not feasible for us to go back through every post and search for the word restitution and replace it with bounciness, but you can always ask about anything that doesn't make sense and folks here will help to explain further.
We prefer that old threads such as this are not revived so please start a new thread if you have questions.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User