Click screen to spawn actors

RastaRiseRastaRise Member Posts: 52
edited November -1 in Working with GS (Mac)
How would I go about click my screen to spawn multiple actors? You all have been so much help to me and like I said my game is ALMOST done!

Comments

  • butterbeanbutterbean Member Posts: 4,315
    In the background that you're going to be spawning actors (or you could place a large, invisible actor over the entire area of the level you wish to spawn actors, and place the following rule in either one of them:

    When touch is pressed:

    Spawn actor: (Whatever actor it is)

    Position: game.mousepositionX Position: game.mousepositionY

    (You can find game.mouseposition X and Y by going to devices, mouse, position---> x,y)

    I personally like using an invisible actor over the background to place the rule in. You can change it's height and width, if you don't want actors spawning in particular areas

    Hope this helps!
  • RastaRiseRastaRise Member Posts: 52
    Thanks man, this helped me ALOT
Sign In or Register to comment.