Record Actor's Position

apple_GSapple_GS Member Posts: 39
edited November -1 in Working with GS (Mac)
I want to continuously record the main actor's position so that when position X is for example 200 I spawn an actor...

Comments

  • apple_GSapple_GS Member Posts: 39
    anyone?
  • JeffreyShimaneJeffreyShimane Member Posts: 372
    If you are using an actor dedicated to spawing, you can use constrain attribute. Create a game attribute called actorX.

    In the main actor:
    Constrain attribute game.actorX to self.position.X

    In the spawning actor:
    If game.actorX = 200, spawn actor

    If you want the main actor to do the spawning, you could bypass creating a game attribute and using constrain attribute and just do something like this:

    In the main actor:
    If self.position.X = 200, spawn actor

    - Jeff
Sign In or Register to comment.