Spawn Actor help

NmdogdudeNmdogdude Member Posts: 174
edited March 2012 in Working with GS (Mac)
Here's the basic set-up of my game:
Defending a picnic from insects who spawn on the left side of the screen and move to the right, & spawn in random places offscreen
Faster bugs are worth more points.
My actor that spawns the bug actors isn't spawning them,
help please.

Best Answers

  • JohnPapiomitisJohnPapiomitis Posts: 6,256
    Accepted Answer
    if you want them to always spawn them on the left of the screen, you should be spawning them at around 0 on the x. Not random(0,32) that will spawn them anywhere on the screen in both directions
  • JohnPapiomitisJohnPapiomitis Posts: 6,256
    edited March 2012 Accepted Answer
    0 isnt the center, its all the way to the left. Try -10 or somethign like that.

    Also make sure its relative to scene in your spawn behavior.
  • CloudsClouds Posts: 1,599
    edited March 2012 Accepted Answer
    Is there a way to make them spawn off screen, rather than at the center?

    Every 2 secs, spawn actor "ladybug animation"
    Direction: 0
    Position >: -20
    Position ^: random(0,480)

Answers

  • CloudsClouds Member Posts: 1,599
    edited March 2012
    "My actor that spawns the bug actors isn't spawning them"

    :))

    My guess would be that there's something wrong.

    You're going to have to give people much more information than "it isn't spawning" - as the problem could be one of numerous things.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    edited March 2012
    Tynan speaks the truth.

    Tell us how its set up, or even better post a screenshot of your rules.
  • NmdogdudeNmdogdude Member Posts: 174
    I have the "spawn actor bug" actor set to:
    Every 2 secs, spawn actor "ladybug animation"
    Direction: 0
    Position >: random(0,320)
    Position ^: randon(0,480)

    I want the actor to spawn ladybugs starting on the left off-screen randomly between 0,460 of the screen.


  • NmdogdudeNmdogdude Member Posts: 174
    Is there a way to make them spawn off screen, rather than at the center?
    (I want something like plants vs zombies where they spawn off screen and move to the right)
Sign In or Register to comment.