spawning actors

gamedivisiongamedivision Member Posts: 807
edited November -1 in Working with GS (Mac)
i have an actor travelling down the screen and i want that actor to spawn 4 stars(actors) that stay in that position until i collect them,even distances apart
any help appreciated

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    You could make a timer and say every 1 second (depends how fast the actor is traveling) spawn star but you would need to wrap it in a rule and make an integer.

    Integer "starCount"

    Rule in moving actor: if starCount <4 every 1 second spawn star then do change attribute starCount=starCount+1 then it will only spawn 4 stars.

    Screenshot is below to see the rules.

    http://www.utopiangames.co.uk/misc/Stars.png

    Or pop me a mail and i will send the file as i had to make it to show you.

    toyboxuk[AT]hotmail.com

    Darren.

    image
Sign In or Register to comment.