We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Simple Countdown Timer

Home Forums Puzzles Simple Countdown Timer

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #72150
    jayt1
    Participant

    Hello, I hope you are well.
    I am using Blender 4.1 and Verge3d 4.6 and I am trying to create a simple two minute countdown timer to display in a game. Unfortunately, I cannot seem to find a tutorial on how to do this so I wondered if anyone could give me some advice on how to achieve this.

    Many thanks ;-)

    #72159
    xeon
    Customer

    Well…there are so many ways to do this. You could also do this with HTML/CSS or JavaScript but since you specified Blender I am guessing you want to use the text object in Blender in addition since you specified Verge3d and didnt specify any other way…I guessed you were wanting a way to do this via puzzles.

    Since this is for a game I figured you need a way to trigger the timer. In this case I am using the “when clicked” puzzle on the monkey mesh.

    There is a “Startup_Reset” procedure that defines the time, in your case 2 minutes (120 seconds) in the “start_time_seconds” variable adjust the “start_time_seconds” to any time you like, in seconds obviously. Its also the Rest function when time runs out…you can press the monkey and restart.

    The second procedure “Seconds to M:SS” just converts a given seconds input into M:SS format for visual display.

    After the time runs out….I am sure you will want to trigger something to happen. So there is a “TimeOut” procedure that changes the material of the monkey and removes the timer.

    Hope this helps.

    Link to sample:
    https://cdn.soft8soft.com/AROAJSY2GOEHMOFUVPIOE:f2f27a4091/X3L_countdown_timers/X3L_countdown_timers.html

    • This reply was modified 7 months, 2 weeks ago by xeon.
    Attachments:
    You must be logged in to view attached files.

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #72177
    visualizer
    Customer

    instead of using verge for making countdown, you may try html or css or java based utilities to get it inside your scene.
    As said by Xeon

    #72200
    jayt1
    Participant

    Hi Xeon,
    Firstly, thank you so much for this, it’s given me a solid starting point to work out from. Secondly, thank you for perceiving what I am trying to accomplish from my original post which was somewhat, crude.
    I have very little knowledge on working with verge3d and the puzzles were becoming a challenge, so this has been a revelation!
    So far, I have managed to implement this into a very basic Q&A game which I am currently working on. If it’s not too much trouble, I would like to post a link to a basic version of the game here in a couple of days or so and I would really like to get your thoughts/constructive criticism if possible.

    Hi visualizer,
    Thank you very much for your advice, it never occurred to me that I could implement a countdown timer in that way. It’s started me thinking…

    Thanks again for your help, it’s much appreciated. :good:
    All the best. ;-)

    #72348
    jayt1
    Participant

    Hello everyone, I hope you are well.
    I am creating a simple children’s Q&A game with a countdown timer and score counter. With xeon’s help, :good: I have managed to get so far, but I really need some advice on how to improve the game.
    At the moment, the game only has one scene, but what I would like to do, is load new scenes and keep track of the score as the new scenes are loaded and unloaded etc. :unsure:

    I hope that makes sense.

    Here is a direct link to the game play so far:
    https://cdn.soft8soft.com/AROAJSY2GOEHMOFUVPIOE:f987943ffd/Kids_Questions_02/Kids_Questions.html

    I have also attached two screenshots of the puzzles that I am using and any advice on how to reduce the amount of puzzles would be great.

    I am new to verge 3d and I have very limited programming skills, so any advice would be much appreciated.

    Thanks in advance. ;-)

    Attachments:
    You must be logged in to view attached files.
    #72351
    xeon
    Customer

    Given the graphics style you are going for you could use a sprite sheet and not have to load any scenes.

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #72354
    jayt1
    Participant

    Hi xeon,
    Okay, I see. I have just found your tutorial on using sprite sheets with blender and verge 3d. I will give it a try and l will let you know how I get on.

    Thank you very much for the advice. :good:

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.