spawner question

goliathgoliath Member Posts: 1,440
edited November -1 in Working with GS (Mac)
Hopefully an easy question for someone to quickly answer...

I have a spawner actor that I want to spawn random actors from all sides of the working area. for some reason, the actors are currently only spawning from the center out and mostly to the left.

I hope I am being clear on my description and if you need more info, please let me know. The premise is to dodge little actors that are floating towards you and to stay alive for as long as possible. Thanks for any help.

Currently my spawner actor is spawning actor 1 every 1 second direction is set to 0 position 0

actor 1 is "move" direction (random 160, 209) speed is random as well.

hopefully something easy and i thank you for the help.

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi goliath, would it be, in the Spawn Actor attribute, set the x, y position of the spawned actor, but then set Relative to scene? The x and y position there in the Spawned Actor attribute could also be determined by a random x and y of, let's say, of similar areas to the left and right of the screen, within min and max limits, if wanted. Then add another random of 1 or 2, being which side the particular spawned actor goes to. Think that would work... (hope I've explained it properly).

    ;-)

    ---------------------------------------------------------------
    Spiral Gyro Games

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

  • goliathgoliath Member Posts: 1,440
    I'll try that thanks! Im sure theres an easy way I just figured I'd ask...
  • Rob2Rob2 Member Posts: 2,402
    I have found that random is very fussy about where it is called from otherwise it can get set in its ways and patterns will quickly appear( not random)!!

    Try a 'change attribute' to assign your random number to an attribute from within a timer and then use the attribute.
  • goliathgoliath Member Posts: 1,440
    anybody else have any work-arounds?
Sign In or Register to comment.