'or' directions

billybarringtonbillybarrington Member Posts: 5
edited November -1 in Working with GS (Mac)
Hi,

new to Game Salad (2 days in!). Been trying to get enemies to randomly spawn across the screen but having trouble. I want them to be going either 90 or 270 degrees. I've tried to use attributes and random number generator with two different enemies set to different angles but after a while the screen gets filled (exponentially) with enemies.

Is there an 'or' code I can put into the direction, 90 or 270. It's probably very simple or impossible and I'm an idiot.

Cheers

Thanks in advance.

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Well you can have one attribute and change that to random(1,2)

    when attribute=1 go 90

    when attribute=2 go 270

    that will go back and forth pickin between the 2 and will be either 90 or 270

    cheers
Sign In or Register to comment.