Random Scene Change

hulkspidy51hulkspidy51 Member Posts: 21
edited November -1 in Working with GS (Mac)
Does anyone know how, for a button, to set up a random scene change? I want the user to be able to click a button and not play the same level twice.

Also does anyone know how to set up an invisible barrier across the entire screen so that you won't be able to touch the buttons on the screen and then after a few seconds it be destroyed. I know how to create the invisible wall actor, just turn the alpha to zero. I know how to spawn the actor at the right time and position and I know how to destroy it after a certain time limit and I know to put it in the front layer in order to block everything on screen behind it, but I don't know how to make it block the user from pressing any button I have on the screen

Comments

  • old_kipperold_kipper Member Posts: 1,420
    The random scene change can be done by having the button press select a random to actor integer attribute, and then have rules that say when the interger attribute value = whatever then change scene to>. You will have to set a rule for each scene that is an option. This can be done with an intermediate scene that does the selecting so each time the button is press it throws the scene to randomiser scene which immediately just launches it to a random from there.

    For your second question it is just a case of a scene or game attribute that has to be switched when you put up the barrier and the buttons have have a condition in them which says they only work when the attribute is false.

    hope that helps.

    kipper
  • hulkspidy51hulkspidy51 Member Posts: 21
    It helps tons. It is much appreciated
Sign In or Register to comment.