collision issue
deej011
Member Posts: 159
im trying to make it when the hero collides with another character or monster they stop but when i use a bounce when collide attribute the other characters or monsters just get pushed by my character or bounce away?
Comments
Try changing the bounciness of BOTH actors to zero if you don't want any bounce at all.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Yea i tired that but everytime i still collide the hero pushes the character/monster away
Set up another actor behind the actor that's being pushed, where the actor that's being pushed bounces against the actor behind it, and it shouldn't move.
Play with the Density of each actor to get the effect you need. Higher densities make an actor seem heavier.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Thanks for the suggestion but than the hero bounces off the character/monster. is there anyway to do it without having to use bounce when collide attribute that works well?
@deej011, there are always other ways to do things. But the ideas above are the easiest and most straight forward in my opinion. If the hero is still bouncing off your enemy are you sure the bounciness of BOTH actors is set to zero? How exactly are you moving your actors? Can you show your rules?
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
here is my rules for hero pretty straight forward