Start Game Issue

kajutokajuto Member Posts: 314
edited February 2012 in Miscellaneous
Hi there!! Thanks in advance. How can i create a button that called let say..Start , when the player press it the whole scene start animate, falling object, ect.?? But without affecting the scene when the player touch Level 1 for example the scene start blinking

Explain in step by step please, I'm new. thanks

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Make an attribute called startGame. Make it a boolean and have it set to false.

    In your start button have when touch is pressed:
    -change attribute startGame to true

    Then everything in the game that you only want to happen after you press the start button, put those rules and behaviors in another rule when attribute startGame is true
  • kajutokajuto Member Posts: 314
    2 thing i don't get it ..

    first, what u mean when u said "have it set to false" ?
    second, how i should to do it? about the last sentence
  • kajutokajuto Member Posts: 314
    John, help me , because i don't get it, please can you explain in step
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256


    1) When you create your boolean attribute, there will be a checkbox next to it. Make sure thats unchecked, that means its false.

    2) All your animations, behaviors to make the objects fall, all that sture that you only want to ahppen after you press the start button. Put all those in a rule when attribute startGame is true.

    Ive explained it all in steps, if you still dont get it check out gshelper.com and the gamesalad cookbook youtube channel to start watching tutorials, and get familiar with gamesalad.

    cheers
  • kajutokajuto Member Posts: 314
    thank John. the only thing i don't understand is how i can put all the animation act inside that actor (start button) , because each is a actor for example, main character, the falling object, ect.. and sorry to bother you so much
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Then you put each actors rules inside a rule when attribute startGame is true. You do that in each actor.
  • kajutokajuto Member Posts: 314
    ah ok, now i follow you. i only have to put this in each actor:

    example:

    main character actor:
    when Touch in Press
    change att.
    "Startgame" to "True"

    i do that with each actor, right?
  • kajutokajuto Member Posts: 314
    only 1 rule and 1 change att, that it?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    No you put that rule once in the start button. The rest you put the behaviors that you want to happen after you press the start button in a rule when attribute start game is true.

    For example you have a start button, actor A that you want to animate after you press the start button, and actor B that you want to move after you press the start button.

    So in your start button have a rule when touch is pressed
    -change attribute startGame to true

    In actor A have a rule when attribute startGame = true
    -then put the animate behavior in that rule

    In actor B have a rule when attribute startGame = true
    -then put the move behavior in that rule

    cheers
  • kajutokajuto Member Posts: 314
    oh oka, so i don't have to specify which actor, only the behavior i used for the main character and falling object....
  • kajutokajuto Member Posts: 314
    it does;t working.. =-(

    i put the falling object a behavior that:
    change att gamestart is true, it start falling anyway jajajaja why?!
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Follow the intstructions i posted above.

    You put it in a rule when attribute game start=true

    You dont change gamestart to true in the falling object.

    You might need to look over some tutorials and get a better understanding of gamesalad
  • kajutokajuto Member Posts: 314
    yesssss ! i did it!! you're the man! but one more thing, i did that:

    Main Character
    Rule
    Att gamestart is false
    moveto left and right(it don;t move) which is okay.

    but after i click the start button i can;t move the main character to left nor right, what i miss?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    ITs not working because your telling it not to.


    You have when attribute game start is false
    -move to left and right

    Once you press the start button, gamestart is true, so that rules stops working, because it only when game start is false.

    cheers
  • kajutokajuto Member Posts: 314
    i already correct that, thank you, really for your time, i appreciate it.

    cheers
Sign In or Register to comment.