game game salad trick

salah.rahalsalah.rahal Member Posts: 121
edited November -1 in Working with GS (Mac)
hello
can anyone show me how to make a scen shows only one time win you start
the game and never shows again (exmaple tell you how to playe at first use and naver show again )
if you can with video pleas
bye bye

Comments

  • beefy_clyrobeefy_clyro Member Posts: 5,394
    You'd need to use attributes.

    Create a boolean game attribute called ShownInstructions and set it to false (0)

    So on a scene before the 'how to play' you will need a rule;

    If ShownInstructions = 0
    Change Scene to 'X'

    Otherwise

    If ShownInstructions = 1
    Change Scene to 'Y'

    So on your How to play scene, at the end, have it change attribute of ShownInstructions from 0 (false) to 1 (true) and then you'll need the save attribute and give it a unique name.

    Now go to your very 1st scene (normally a splash scene) and insert a load behaviour and load the ShownInstructions attribute with the unique name you gave it.

    Then on the scene before you would get to the 'How to play' it will use that attribute, if it hasnt been shown it will show it, if it has it will skip it and go to whatever scene you tell it too.
  • MotherHooseMotherHoose Member Posts: 2,456
    well... you can not destroy a scene... you can make them not selectable at anytime...

    looking at your question, I would create an actor with the image you want

    drag it onto the scene and use the arrow keys to put it in the grey area outside the black display-size area
    (center it and then down arrow to change its Y position)

    Rule when
    the trigger to show it...either Timer or user input
    (and if user input this rule should go on that actor's instance in scene)
    ---changeAttribute self.Position.Y To: 0
    Otherwise:
    ---changeAttribute self.Position.Y To: -200 (or whatever you need to have it out of sight)
    (you could enclose the above in line in a Otherwise Rule with condition to trigger the disappearance )

    I would reuse this actor... if only on your credits page --just changeImage

    to save bytes you could do an interpolate your background's Alpha color to 0 when you want your instructions to show....and reverse when that is done
    or if your background is one image that has events triggered by touch... don't bother making a new actor...just change the image to instructions...

    I for one, think that instructions should, at any time in game play, be available for the user.

    MH
Sign In or Register to comment.