'Lives', 'Timer' & Audio questions!

0 favourites
From the Asset Store
Tabata timer
$9.99 USD
Template for Tabata timer, fully documented in comments and video
  • Hi guys!

    I am a complete newb to Construct2 but I'm loving what I've seen so far ... anyway, I was wondering if you guys could help me with some things I'm struggling with? It's basic stuff but I keep getting it wrong somewhere. I didn't know which section my questions would come under specifically so I put it in this, hope that's ok?

    I've taken this tutorial : https://www.scirra.com/tutorials/846/ea ... -our-games for the bike physics as the example for my first game ...

    I've altered it a little to make it basic and have uploaded the capx for you to change.

    I'm sure there are tutorials but I struggle with my concentration due to having ADHD and it makes it impossible for me to learn by just reading ... if you can change the capx file I will be able to see how it's done and learn from there by changing and experimenting <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    Ok, my questions ...

    1. How do I set a timer between point A and point B in the game? I would like it to count down and the player loses a life if not completed in time ....

    2. How do I give the player lives to begin with? I would like him to have 3 lives to start the game and gain extra life by collecting all of the tokens in a game ... the tokens I have put in the game are the green circles numbered 1,2 and 3.


    1. How to play a sound when 'accelerate' is pressed? I have uploaded the sound as 'rev' ... it seems to keep repeating the sound if the button is continuously pressed down ... is it possible to make it just play the sound file every time it's pressed, not continuously?

    2. The sound when the bike crashes also seems to continuously play ... can the 'crash' noise just be played once?

    All help appreciated and thank you in advance!!

  • I think i may be able to help with audio questions:

    Question 1 answer:

    Add keyboard input to your layer then in the event sheet:

    On key pressed > play (under "General" and set to not looping)

    That should work fine. I just tried it in a game of mine and it worked fine

    Question 2 answer:

    Similar to the last answer but when the bike crashes then play the sound. Add an event like:

    Bike crashed > play (under "General" and set to not looping)

    Again i just tried this and it worked fine. Let us know how you get on and sorry i cant help with the first two

  • Hi .. thanks for your time

  • i'll check out the capx and try it out myself with my own sound clip, gimme a few mins

    edit: nvm, youre sounds are in there, i'll try with those then

  • Thanks dude!!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Update: got the sound working on W key pressed, just checking out the crash one ^_^

  • Sorry dude, I was going to delete the keyboard controls and just have it for the touch controls ... is that a different thing altogether? The capx was from another tute, I've just made the track flat and added some sprites :/

    *is that a different thing altogether or do I apply the same thing to the touch control?

  • Okay i'll have a look at it but ive not dealt with touch controls before so bare with me

    Update however: crash sound plays once when crashing.... so far

  • Sweeeeeheeeeet!! Thanks for your time dude, really appreciated!!


  • Okay so the events you need to look at are:

    • Event 38 and its sub event
    • Event 56

    Check them out and let me know if they make sense


  • Awesome!! Thanks dude!!!!

  • I'll check and have a play now!!!

  • Good luck!

  • PERFECT!!!! Thank you so much dude, I've spent nearly 2 days scratching my head trying to work out how to do that!!!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)