Not sure which rule or behavior to use

tcla75tcla75 Member Posts: 71
edited November -1 in Working with GS (Mac)
Hi all just started using GS after updating the old version. Really loving this because of the freedom it gives people who don't know a lot about coding. The problem I am having is that I am trying to create a memory touch based game. So it starts off simple enough. You see two silver balls. The first one changes colour and back again then the second one changes colour and then back again. The idea then is you have to touch the balls in the order they flashed.
Had no problem with the first part where the computer shows you what you have to do but when it comes to the player doing the same I am drawing a blank. What I am trying to do is set up rules where if you don't touch the ball in a set time it will be game over or if you touch the wrong ball first its game over. If anyone can help I would be really grateful.

Comments

  • tcla75tcla75 Member Posts: 71
    Hi GsLover thanks for that but I might need a link to a tutorial or a link to somewhere with a step by step guide. I had a look in debug mode and I don't understand the rules how they were applied and what they are doing to what.
    I guess if I explain what I have done so far that might give people a better idea what level I am at and how they can help me.
    In the scene for when the computer shows you what you have to do I have a rule set to the silver ball

    Attribute scene.Time 3

    Change image to color ball.png

    Rule
    Attribute scene.Time 4

    Change image to silver ball.png

    This changes the colour of the ball and back again and then again for the second ball

    The background is

    Attribute game.Time 7

    change scene
    go to scene level 1 start

    This ends the little animation and lets you start the game. So far after this I have on level 1 start silverball

    rule
    actor receives event touch pressed

    change image to color ball.

    I tried after this putting into

    Otherwise

    Change attribute game.time 2

    Change scene to game over

    Thinking otherwise was a rule if nothing was pressed after 2 seconds it would go to game over but when I preview this level it goes straight to game over. So thats where I am stuck at the moment and I don't even have a clue how to set up a rule if the wrong silver ball is tapped it is game over.
    I hope this explains where I am at or what way I am trying to make this gam and hopefully someone will be able to explain where I am going wrong.
Sign In or Register to comment.