How to change scene at random without the same scene playing twice

gscgames.incgscgames.inc Member Posts: 5
edited November -1 in Working with GS (Mac)
Im having a big problem i would like to set my game up where seen 1-10 play at random but dont want the people to have to answer the same question twice...please help

Comments

  • DrGlickertDrGlickert Member Posts: 1,135
    I'd make 10 attributes that are boolean or integer (0/1 for true/false).

    Do a change attribute of a random number between 1 and 10, if scene 5 is selected change that attribute to true or 1.

    Then have a timer that every 0 seconds, if the next scene is 5 AND scene5 is true/1 then it picks another number.

    Eventually, you'll run out of numbers and have to go to an end-game scene or the game will crash. Make sure you set up something that when all the game attributes = 1 (or true) then do something...(end game, restart, reset, etc...)
Sign In or Register to comment.