Spawning an actor where you click.

Hudson0911Hudson0911 Member Posts: 2

Sorry for the stupid question, but I am new to Gamesalad, and I was wondering how you would make a certain actor spawn wherever you touch. I have a "spawn area" which is where they can spawn, but how do I make the actor spawn in the exact place that I touch?

Comments

  • Hudson0911Hudson0911 Member Posts: 2

    Never mind I got it sorry just had to make the spawning positions = game.mouse.position.X and game.mouse.position.Y.

  • SocksSocks London, UK.Member Posts: 12,822

    @Hudson0911 said:
    Never mind I got it sorry just had to make the spawning positions = game.mouse.position.X and game.mouse.position.Y.

    Yep! As simple as that. :)

Sign In or Register to comment.