Move to behavior not persistent
Twayne2
Member Posts: 458
To me persistent means something will keep trying no matter what. So when an actor with ''move to'' such and such a position is stopped because it also has a collide behavior and it collided with another actor that is in its way, and it just floats away rotating wildly, something seems wrong with that connotation.
An example:
Actor 1:
move to 700,700.
Collide with actor 2.
Actor 2 is in the way. Actor 1 hits actor 2 and both go flying. Would not actor 1 keep trying to get to 700,700? Assume actor 2 was immovable. Then actor 1 should continually keep pressing against actor 2. Seems like an action attribute...?
P.S. I guess physics can stop persistent attributes?
Comments
@Twayne2
Physics seems to override it, and a lot of other things too. Bounciness is the cause most likely. If you turn it off ( to 0) on the actors, it will just keep trying to go to that spot properly.
A workaround with physics still enabled would be a rule:
That way when it isn't colliding it will retrigger the move to behaviour.
There might be other solutions too, but I didn't dig too deep.
Follow us: Twitter - Website
@AlchimiaStudios Thanks, I think that will work! One like coming up!
Also, what on earth is with the guy that posted above me? That had nothing to do with this topic...?
This topic can be closed now.
Sadly just another case of more spam...
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Well at least it helps keep the forums a little more active: a common person to fight against. Lol.