Distance between two actors and movement?
Hey,
I was playing around with a game where 2 objects move from top to bottom.
When leaving the scene the actors positions get set back to random Y value. The scene is at height 960. 480 for the game and the upper half for my moving actors. And I set up the magnitude for the distance between these 2 Actors. I don't want to get them closer than 400.
So I was working on some rules to get this done. But it drives me a bit crazy.
The problem is that the distance changes because of the position set back when leaving the scene...
Can someone help me a bit to get rid of this issue?
thx
I was playing around with a game where 2 objects move from top to bottom.
When leaving the scene the actors positions get set back to random Y value. The scene is at height 960. 480 for the game and the upper half for my moving actors. And I set up the magnitude for the distance between these 2 Actors. I don't want to get them closer than 400.
So I was working on some rules to get this done. But it drives me a bit crazy.
The problem is that the distance changes because of the position set back when leaving the scene...
Can someone help me a bit to get rid of this issue?
thx
Comments
when distance >=400
move down 270°, speed 400
otherwise:
when distance <400
change attribute self position Y
mhmm...
Alex
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
I only want 2 actors to get replaced when leaving the scene to a random position and don't get to close to each other.
So: Random Spawn but not to close..