Need help urgent! Spawn actors in direction of actor with tag...

caiokawasakicaiokawasaki Member Posts: 68
edited February 2013 in Working with GS (Mac)
To understand my problem, play my game:
Here u can see the game i'm developing: http://arcade.gamesalad.com/g/109754

If you play the game, when you put the starship into the magnet field of the planet, the planet spawn a lot of resources in the direction of your starship.
But, if you make 26 resources or more, you can click in the button in the bottom right to spawn a colector it will collect the resources in the magnet field, but the question is, how to make the colector attract the resources?

The collector and the starship have a tag called Nav.
If the starship and the collector be into the magnet field at the same time, can i do both receive the resources?

Thanks... waiting...

Comments

  • glyniusglynius Member Posts: 231
    I don't know if i got it clear, but if you interpolate the resource position to collector's position?
  • caiokawasakicaiokawasaki Member Posts: 68
    edited February 2013
    I don't know if i got it clear, but if you interpolate the resource position to collector's position?
    I create 2 atributes in the game, position X and position Y, then i constrain the starship position x and y to the game atributes i've created.
    when the starship collide with any magnet field the magnet field spawn a resource every 1/2 second...
    the resouces are constrained to the starship, so it will spawn in the planet then start to follow the starship...
    I need to do the resourcers follow the colector too...
    The resources need to follow both, the starship and the colector...
    (the planet and the magnet field are two separated actors)
  • caiokawasakicaiokawasaki Member Posts: 68
    up?
Sign In or Register to comment.