Respawn

MERMMERM Member Posts: 194
edited November -1 in Working with GS (Mac)
Hi. I'm a 7th grade student working on a science fair project and this is the first time im using this program.
I was working with scirra construct on windows, but this is way more awesome! In my game, I have kind of an overhead view, and what i want is that every couple of seconds is for an object to appear, cause im trying to make a collection game, you know, get something, get the next, play till you die. I need the objects to randomly appear and i cant figure it out! Please help!

MegaEpicRandomMan

Comments

  • AsymptoteellAsymptoteell Member Posts: 1,362
    Make a background actor.

    In its rules, add a timer. Set it to every random(2,6) (two and six are the min and max possible amounts of time between spawnings)

    In the timer add spawn actor at position X random(0, put in your screen size X) and position Y random(0, put in your screen size Y)

    That should work.

    I'm glad to hear you're enjoying using Gamesalad. It's a great tool, and a cool idea to use for a science fair project.

    Make sure you mention Gamesalad.com in your presentation. It would help with their business.

    If you enjoy doing this, you should make games with it for the app store and Gamesalad.com.

    I hope your game works out well.

    Asymptoteell
  • MERMMERM Member Posts: 194
    ok, so i added a blank actor, added a timer to every random(2,6), then spawn actor, i chose my actor that i wanted to respawn, direction 0, position X to random(0,480), and position Y to random(0,320), and it didn't work. Am i doing something wrong? I am planning on uploading it to gamesalad.com and i think 480x320 is the resolution. I'm not so sure.. anyways thanks for the help!
  • MERMMERM Member Posts: 194
  • AsymptoteellAsymptoteell Member Posts: 1,362
    I'm pretty sure it's 720 by 480.

    What exactly is happening if it's not working right?

    Asymptoteell
  • MERMMERM Member Posts: 194
    it just acts like it doesn't have the command, I come in contact with the original, it gets destroyed,then it just doesn't do anything else...
  • AsymptoteellAsymptoteell Member Posts: 1,362
    In the spawn behavior, make it relative to scene.
  • MERMMERM Member Posts: 194
    it is...
Sign In or Register to comment.