Tagged: Countdown Timer, game, Keeping Score
- This topic has 6 replies, 3 voices, and was last updated 8 months, 1 week ago by jayt1.
-
AuthorPosts
-
2024-04-07 at 9:32 am #72150jayt1Participant
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
2024-04-07 at 6:38 pm #72159xeonCustomerWell…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 8 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.com2024-04-08 at 3:35 pm #72177visualizerCustomerinstead 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 Xeon2024-04-09 at 11:36 am #72200jayt1ParticipantHi 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.
All the best.2024-04-16 at 7:59 pm #72348jayt1ParticipantHello 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, 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.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.htmlI 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.2024-04-17 at 12:40 am #72351xeonCustomerGiven 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.com2024-04-17 at 7:04 am #72354jayt1ParticipantHi 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.
-
AuthorPosts
- You must be logged in to reply to this topic.