Non bouncing collide behavior

FallacyStudiosFallacyStudios Member Posts: 970
edited November -1 in Working with GS (Mac)
Right now I have it set up so that when on actor of a color is touched and it is touching colors of a similar color it destroys all of the same color that are touching. How I am doing this is I have another actor with the same color that spawn (making it active) and when normal ones of that color touch it it turns them "active" and once it considers 3 of the same color are touching it destroys them all otherwise it re-spawns the normal color.

The problem I am encountering is when I touch one they do often times destroy all of that color as they should but most times they also bounce around eachother like crazy (there are other colored bubbles surrounding them as well so it moves the surrounding ones around for a bit). Is there another way to do a collide behavior where it wont bounce around when they spawn the active in and out? It sometimes causes not all of the same color touching to turn and destroy because the others moved a bit. It also just looks bad, so if you have any other ways to pull something like that off or any other ideas I would appreciate it.

P.S the game is similar to those bubble bust games where they are all lined up you touch one color it destroys the surround (touching) of the same color for more points.

Thanks

Comments

  • beefy_clyrobeefy_clyro Member Posts: 5,394
    Go into your actors, on the left hand side menu is the actors properties. 1 of these sections is physics. Restitution is the bounciness and by default is set to 1, change this to zero for no bounce. You may need to set it on both actors that collide depending on your desired effect.
  • FallacyStudiosFallacyStudios Member Posts: 970
    Ya I already set the Resitution, Friction, and Density all to 0. Should I have one of the others set to something and resitution set to 0 only?
  • FallacyStudiosFallacyStudios Member Posts: 970
    Well I decided that it's best to just make it so that they are destroyed when press no matter how many. The activated ones still bounce a bit but because it's not changing twice it solves alot of the bouncing around problems.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Density should be higher. and restitution should be 0 for no bouncing.
  • FallacyStudiosFallacyStudios Member Posts: 970
    Ok thanks tendrmer :)
Sign In or Register to comment.