How Can I Make An Actor Collide With Another Actor Without It Bouncing?

FallingBoxStudiosFallingBoxStudios Freelance Graphic DesignerMember Posts: 822
edited September 2013 in Working with GS (Mac)
basically what I'm trying to ask is how to make an actor collide with out bouncing, I have set my character to walk, but I have made 2 actors (walls) to accelerate towards the character, so if the character does not do… (can't share the story with everyone ;) ) in time the walls crash him, I have made the walls collide with the character, and I have set the walls to fixed rotation and 0 bounciness, but my character can still bump into the walls and the walls will bounce away, I want them to collide with him,but they still continue moving towards him, so he can bounce off them but he can't move them, please help me. Thanks - Hunter

image

Comments

  • mataruamatarua Auckland, New ZealandMember Posts: 854
    Simple rule could work - if greenWall collides with blueGuy change attribute self.Linear.Motion.X to 0

    Otherwise

    Accelerate at #.
  • FallingBoxStudiosFallingBoxStudios Freelance Graphic Designer Member Posts: 822
    @matarua but I don't want the character to stop moving, I just want the walls to keep moving towards him even if he touches them,
  • KevinCrossKevinCross London, UKMember Posts: 1,894
    edited September 2013
    Have you got the collide/bounce behaviour on the walls? If so, remove it.
  • mataruamatarua Auckland, New ZealandMember Posts: 854
    They do with that rule - they just get paused for a 0.03 of a second, then continue.
  • FallingBoxStudiosFallingBoxStudios Freelance Graphic Designer Member Posts: 822
    @KevinCross so put it only on the character?
  • KevinCrossKevinCross London, UKMember Posts: 1,894
    Yes, if you only want the character to bounce.
  • mataruamatarua Auckland, New ZealandMember Posts: 854
    I made a simple example that does exactly what you ask for... :)
  • FallingBoxStudiosFallingBoxStudios Freelance Graphic Designer Member Posts: 822
    @KevinCross it still did not work :(

    @matarua thanks for creating the template :) but the walls still push away if you push the character against the walls for a couple seconds :(
  • KevinCrossKevinCross London, UKMember Posts: 1,894
    The other thing to try is switching off Movement which can be found under Physics on your wall actor(s). You should still be able to move it but it stops it from being affected from physics (although removing the bounce behaviour from the wall should have sorted it).

    Please accept that I'm not near a copy of GameSalad to check it so I could be making all of this up :)
  • FallingBoxStudiosFallingBoxStudios Freelance Graphic Designer Member Posts: 822
    @KevinCross sure I understand :) but turning off movable stops it from moving completely :(
  • mataruamatarua Auckland, New ZealandMember Posts: 854
    In the physics something has to give - it's like when an immovable object meets an unstoppable force. Who wins? Nobody as the clock loses. You would have to put a rule in to stop the wall at some point. Seems going to the left wins with different actors which is interesting as they have exactly the same values reversed.

    It's a tug of war that's a push of war. It just needs some logic to turn if off and on at the right times :)
  • FallingBoxStudiosFallingBoxStudios Freelance Graphic Designer Member Posts: 822
    edited September 2013
    @matarua Okay then, thanks for the help :) I will play around with your template and see if I can make it a bit more like it needs it to be, Thanks :)
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Increase the density of the walls.
  • FallingBoxStudiosFallingBoxStudios Freelance Graphic Designer Member Posts: 822
    edited September 2013
    @FryingBaconStudios THANK YOU SO MUCH! it worked :D
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    That's why I'm the self proclaimed Gamesalad Guru ;)
  • DestinyXDestinyX Member Posts: 12
    I believe there is a attribute under each character called bounciness and just set the value of that to 0 on both actors that are colliding.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    That won't help as collisions will still move the actors but not bounce. Density determines how much force is needed to displace an actor. Setting the density higher than another object means the object of the lighter density needs more force to move the other.
  • FallingBoxStudiosFallingBoxStudios Freelance Graphic Designer Member Posts: 822
    @FryingBaconStudios Just wondering, does turning up density make it buggy to play? if I turn the density up to 10,000 will it effect the gameplay?
  • KevinCrossKevinCross London, UKMember Posts: 1,894
    Try it
Sign In or Register to comment.