SIMPLE TIME SYSTEM
This will help you make a very simple and modifiable time system.
headphones- 04/21/2009 12:00 AM
- 1853 views
This time system is probably the most basic you can get without exluding elements of the system that are vital to certain aspects.
Make this a common event.
Firstly, you'll need several variables and a switch. Make a switch called "Time on". Here is a list of variables you'll need:
1) time:seconds
2) time:10 seconds
3) time:minutes
4) time:10 minutes
5) time:hours
6) time:days
7) time:month
8) time:years
To make a few things clear, you should know that this tutorial is showing how to make a 24-hour clock. You may show 12 hours if you'd like, but I just find it to be a pain when it comes to showing the time to the player. But I just get lazy with copying and pasting unnecessary operations.
Also, I made this system in VX, so the language may be slightly different, but I'm sure you can convert it. And of course, I'm using the var #'s that I used to avoid confusing myself. Try not to confuse yourself with it.
Here's the code straight up:
>Label: 1
>Wait: 60 frame(s)
>Control variables: +=1
>Conditional branch: Variable == 10
>Control Variables: = 0
>Control variables: += 1
>Conditional Branch: Variable == 6
>Control Variables: = 0
>Control Variables: +=1
>Conditional Branch: == 10
>Control variables: = 0
>control variables: += 1
>conditional branch: Variable ==6
>control variables: = 0
>control variables: += 1
>conditional branch: variable ==24
>control variables: = 0
>control variables: += 1
>conditional branch: variable == 30
>control variables: = 1
>control variables: += 1
>conditional branch: variable == 1
>control variables: = 1
>control variables: += 1
Then there will be tons of else cases. At the very end of the entire event, put "Jump to Label 1" so it will continue the cycle. Make it a parallel trigger, triggered by the "time on" switch.
Make this a common event.
Firstly, you'll need several variables and a switch. Make a switch called "Time on". Here is a list of variables you'll need:
1) time:seconds
2) time:10 seconds
3) time:minutes
4) time:10 minutes
5) time:hours
6) time:days
7) time:month
8) time:years
To make a few things clear, you should know that this tutorial is showing how to make a 24-hour clock. You may show 12 hours if you'd like, but I just find it to be a pain when it comes to showing the time to the player. But I just get lazy with copying and pasting unnecessary operations.
Also, I made this system in VX, so the language may be slightly different, but I'm sure you can convert it. And of course, I'm using the var #'s that I used to avoid confusing myself. Try not to confuse yourself with it.
Here's the code straight up:
>Label: 1
>Wait: 60 frame(s)
>Control variables: +=1
>Conditional branch: Variable == 10
>Control Variables: = 0
>Control variables: += 1
>Conditional Branch: Variable == 6
>Control Variables: = 0
>Control Variables: +=1
>Conditional Branch: == 10
>Control variables: = 0
>control variables: += 1
>conditional branch: Variable ==6
>control variables: = 0
>control variables: += 1
>conditional branch: variable ==24
>control variables: = 0
>control variables: += 1
>conditional branch: variable == 30
>control variables: = 1
>control variables: += 1
>conditional branch: variable == 1
>control variables: = 1
>control variables: += 1
Then there will be tons of else cases. At the very end of the entire event, put "Jump to Label 1" so it will continue the cycle. Make it a parallel trigger, triggered by the "time on" switch.
Posts 

Pages:
1
Pages:
1













