Charas-Project

Game Creation => Requests => Tutorials => Topic started by: rm2k3_rulez on May 04, 2008, 01:13:40 AM

Title: Game Time
Post by: rm2k3_rulez on May 04, 2008, 01:13:40 AM
Ok I got a tutorial on how to make rm2k3 tell you how long you've been playing your game for. Instead giving an all out word by word tutorial, I'll jus show you waht it should be. One thing first go to the Common Events first and Then enter this stuff in.

Part 1:
<>Wait: 1.0 Sec
<>Variable Oper: [xxxxSeconds] +1
<>Branch if Var [xxxxSeconds] is 60
    <>Variable Oper: [xxxxMinutes]+1
    <>Variable Oper: [xxxxSeconds] Set 0
End
Branch if Var [xxxxMinutes] is 60
    <>Variable Oper: [xxxxHours]+1
    <>cariable Oper: [xxxxMinutes] Set 0
End
Ok the xxxx stands for whatever # the variable is. Now for every second it adds to the variable Seconds and will build up until it reaches 60. Then it adds 1 minute to the variable minutes. Oh one more thing set this Common Event to a parallel process and teh Swotch should be this Switch[Time] that way when you start your game or whatever make sure your intro turns on the Switch Time that way the event starts going.

Part 2: THis is the watch laso make this a parallel process and make switch Watch Common Event should look like this.

Message:You've been playing for \v
\v
Switch Operation: [xxxxWatch] OFF

Turn the switch off that way the message wont keep going on and on. Once again x stands for variable number or switch number. Time to go make a watch now. Go to items and make a new item that is a switch. Make it turn on the Watch switch that way it tells you how long you've been playing.
This concludes the tutorial.
Title:
Post by: A Forgotten Legend on May 04, 2008, 01:17:02 AM
Just showing what it would be isn't really a tut.  Its more of a "here!  Take this!  Don't learn how this works!"

But, it would get the job done.
Title:
Post by: Ben on May 04, 2008, 01:39:41 AM
Im pretty sure we have a game clock tutorial here somewhere already
Title:
Post by: lilsniffs3 on May 04, 2008, 03:52:18 AM
He probably just thinks we haven't been to RM Tutorials. But it's pretty simple to do.

PS: There should be a thread about how to do the simplest things, like a collection for beginners, that has stuff like jumps, running, time, clock, day/night, etc. I feel like making one.
Title:
Post by: rm2k3_rulez on May 04, 2008, 04:16:21 AM
Hey guys one question real fast. How do i change my avatar. I cant figure out how. I know this has nothing to do with this tutorial.
Title:
Post by: lilsniffs3 on May 04, 2008, 04:21:25 AM
Look at the top left, near our banner, press Profile, press edit options, and you can upload one from your computer.
Title:
Post by: rm2k3_rulez on May 04, 2008, 04:53:18 AM
THanks lilsniffs