Help With Collide, Walls

VoidedSkyVoidedSky Member Posts: 1,095
edited November -1 in Working with GS (Mac)
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

Comments

  • SDMGSDMG Member Posts: 280
    Have you tried to set the Restitution to 0 ... ?

    (Actor-->Physics-->Restitution)
  • JGary321JGary321 Member Posts: 1,246
    Don't even use the 'collide' rule. You really only wanna use that IF you WANT it to bounce. Instead just make a rule that when the actor 'collides or overlaps' with actor:wall change velocity to 0.

    On a side note, try using velocity rules instead of move rules. It is much easier to change.
  • johnccjohncc Member Posts: 25
    It's actually fine to use the collide rule. The attribute that adjusts the bounce is the "Restitution" attribute found in the items physics section. If you want it to bounce just slightly you can lower the number or raise it to bounce more.
  • BenjaBenja Member Posts: 3
    *bump*

    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?
  • BopskipBopskip Member Posts: 1
    Have you tried to set the Restitution to 0 ... ?

    (Actor-->Physics-->Restitution)
    I tried that with this little game I'm making, but the wall and the person still bounce. Any thoughts?
  • echoinkechoink Member Posts: 11
    There is no restitution command in the latest version. These forums might benefit from some updates.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited December 2013
    Restitution = bounciness.

    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

This discussion has been closed.