Distance between two actors and movement?

GuaveMediaGuaveMedia Member, PRO Posts: 1,262
edited February 2012 in Working with GS (Mac)
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

Comments

  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Bump....
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    What I tried to do was:

    when distance >=400
    move down 270°, speed 400

    otherwise:
    when distance <400
    change attribute self position Y

    mhmm...

    Alex
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Nobody an idea?

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Thx FryingBaconStudios, but that wasn't my question. As I said, I already set up magnitude.

    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..
Sign In or Register to comment.