Bootfit's Recent Forum Activity

  • Here's the top of the event sheet...

  • I've got the following for a countdown/timer...

    -----

    Global number Timer = 5

    System > On start of layout > TimerText > Set text to "time: " & Timer

    System > Every 1.0 seconds > System > Subtract 1 from Timer

    |--> System > Timer = 0 > System > Reset global variables to default

    -----

    ...but the countdown doesn't start - it just sits there at 5. Any ideas?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks - I changed 'Is touching' to 'On touched' and it works fine now.

    Hopefully this will translate to mobile devices.

    Thanks for your help

  • OK this is driving me up the wall now. I've managed to get the score adding/subtracting, but because it's an 'is touching' event the scores rocket up/down if the button is held.

    ---

    Global number Score = 0

    Global number Answer = 0

    Global number AnswerCheck = 0

    Global number Guess = 0

    System > On start of Layout > Score > Set text to "Score: " & Score

    System > On start of Layout > System > Set Answer to choose(1,2)

    System > On start of Layout > System > Set AnswerCheck to Answer

    Touch > Is touching GuessButtonYes > System > Set Guess to 1

    Touch > Is touching GuessButtonYes > System > Set AnswerCheck to Answer

    ---- System > Guess = AnswerCheck > System > Add 1 to Score

    ---- System > Guess = AnswerCheck > System > Restart Layout <-- restart layout adds/subtracts the score on the next layout, but it cycles through this for as long as the mouse is held down

    ---- System > Guess ? AnswerCheck > System > Subtract 1 from Score

    ---- System > Guess ? AnswerCheck > System > Restart Layout <-- restart layout adds/subtracts the score on the next layout, but it cycles through this for as long as the mouse is held down

    I've tried the Trigger once action but it still continually restarts the layer and rockets up/down the score.

    I need an action that restarts the layout once per click.

    Any ideas?

  • How do I select an If for if > System... ?

  • Working on a mobile app that's 4K Portrait (2160 x 3840 so I can scale down for smaller screens).

    I need quite a large font size (500pt) but the largest font size available seems to be 144pt. Is there a way to get larger font sizes?

    Thanks

  • You need to put it all together on start you set the Text to Score Global, the check Everytick for Score to change if so then set Text to "Score: 1"

    System > On start of layout > Text > Set text to "Score: " & Score

    System > Every tick > Text > Set text to "Score: " & Score

    This would be triggered once like

    if the answer is correct then:

    System > trigger once

    System > guess = result > System > set Score to Score+1

    I've tried this and the score again just rockets up.

    On a separate dummy project I've used the following bare bones that works fine:

    ---

    Global number Score - 0

    System > Every tick > Test > Set text to "Score: " & Score

    Touch > On tap gesture on Sprite01 > System > Add 1 to Score

    Touch > On tap gesture on Sprite02 > System > Subtract 2 from Score

    ---

    This works fine on the dummy project, but not when dropped into the main project.

  • Brilliant - thanks for the help. Makes sense

  • Working on a game where if a user selects the correct symbol a 1 gets added to the score.

    So I've got:

    ------------------

    Global number Score = 0

    Global number result = 0

    Global number guess = 0

    System > Every tick > Text > Set text to "Score: " & Score

    ... (other game events go here)

    System > guess = result > System > Add 1 to Score

    ------------------

    What this does if result and guess match is continually add 1 to the score so the score rockets up.

    So I've also tried:

    ------------------

    Global number Score = 0

    Global number result = 0

    Global number guess = 0

    System > On start of layout > Text > Set text to "Score: " & Score

    ... (other game events go here)

    System > guess = result > System > Add 1 to Score

    ------------------

    Which then doesn't add anything to the score.

    What am I doing wrong?

  • OK - if no one can point me towards a tutorial, can you help with the following:

    Each time my game loads I want the system to choose a random variable (called result), either 1 or 2.

    So my event currently looks like:

    System > Every tick > System > Set result to int(random(1,2))

    How's this? Does this look right?

  • Can someone point me towards a tutorial that explains how to implement variables?

    I've looked through the manual but the explanation seems pretty light. I need a working example so I can see how set them up within the Construct interface.

    Thanks all

  • Just jotting down couple of game ideas and was wondering if it's possible for Construct to access mobile phone contacts so the player can message a selected contact once they've achieved a certain criteria?

    e.g.:

    • Dave won the gold medal

    • game messages Jack

    • message: Dave won the gold medal! (picture of medal)

Bootfit's avatar

Bootfit

Early Adopter

Member since 3 Sep, 2017

Twitter
Bootfit has 2 followers

Trophy Case

  • 7-Year Club
  • Forum Contributor Made 100 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

10/44
How to earn trophies