spawning

AppsforCameronAppsforCameron Member Posts: 13
edited November -1 in Working with GS (Mac)
Ok so I'm making a game that requires spawning the actor once, once touched. I can't seem to figure out how I only get the actor to spawn once and not every time the actor is touched.
Thanks

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi AppsforCameron; that's quite straightforward, you need a "switch", so a scene boolean attribute will do the job, called Spawnfinished or something.

    So in the Rules of your spawning actor:
    When all conditions are true
    When touch is pressed
    When Spawnfinished is false

    spawn your actor to position you want.

    Change attribute Spawnfinished to true.

    If there is more than one actor which can spawn once, you'll need a different boolean attribute for each one, of course; SpawnFin01, SpawnFin02, etc perhaps.
    ;-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • AppsforCameronAppsforCameron Member Posts: 13
    Yah I'm working on my first app and creating attributes is not my thing.(for now) Anyways thanks.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Understood, no point rushing into it if you've just started with GS, but believe me, attributes are your friends; there's just so much stuff that can be done with them. But I'm sure you'll get round to learning about them quite soon. And as you've probably gathered, this is a buzzing Forum, there's always someone around if you need more help.

    I'm guessing you've found the tutorials/how to's? If not, work logically through them and you'll learn fast:

    http://gamesalad.com/wiki/

    There are also some excellent tutorials by Tshirtbooth & Weswog

    http://www.youtube.com/user/GameSaladCookbook

    http://www.youtube.com/user/Weswog

    (Apologies to you guys who have also made video tutorials which I can't remember...)

    Happy game making!

    :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Sign In or Register to comment.