Timer In Settings Menu

JelJel Member Posts: 319
edited November -1 in Working with GS (Mac)
Hi,

I have a HUD timer that resets the game after 60 seconds working well but what I want to do is in the settings menu at the start of the game have - easy,med,hard - settings and with each one I want the time to change in the HUD.

I would have it go straight to a scene with a different HUD but I also have a select Character in my settings menu.

Sorry if this has been posted before, I wasn't able to fine a post directly relating to the above.

Thanks in advance, Jel

Comments

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    let me get this straight - you want to have a settings page that allows you to select the difficulty, and based on that difficulty you want to change the countdown timer?

    If this is right, I'd just use a bunch of attributes:

    timer = 0
    easy = 60
    medium = 45
    hard = 30

    and in the settings have buttons for each difficulty level:

    easy
    if actor receives touch
    change attribute game.Timer = game.Easy

    medium
    if actor receives touch
    change attribute game.Timer = game.Medium

    hard
    if actor receives touch
    change attribute game.Timer = game.Hard
  • JelJel Member Posts: 319
    Hi Guys,

    Thanks for your help. I already had some of the answer staring me in the face with my other settings and just created a HUD spawner with some the above settings.

    Now my only thing is, what is the best way of setting up a default character & level ( IE main character on easy level ) if the player skips the settings screen ?

    Cheers, Jel
Sign In or Register to comment.