Charas-Project
Game Creation => Requests => Tutorials => Topic started by: Xen on October 11, 2004, 05:49:41 PM
-
Now you can have a Pedometer in your game! I made the tutorial myself! Here's how to do it!
1) First of all, make 2 common events, one for an X co-ordinate and one for a Y co-ordinate.
2) Make 6 new variables: X co-ordinate, Y co-ordinate, one for a hero X co-ordinate, one for a hero Y co-ordinate, one to record the number of steps taken and one to record map data (not important). Call 'em what you like!
3) Put the following stuff in the X co-ordinate common event:
<>Loop
<>Variable Oper: [Put hero X co-ordinate variable here] Set, Hero X Coord.
<>Wait 0.0 Sec (VITAL!)
<>Branch if Var [Hero X co-ordinate] is V[Other X co-ordinate] Greater.
<>Variable Oper: [No. of steps taken] + 1.
<>Memorize Location: [Map variable] [X co-ordinate(not hero one)] [Y co-ordinate(not hero one)]
<>
:Else Handler
<>Branch if Var [Hero X co-ordinate] is V[Other X co-ordinate] Less.
<>Variable Oper: [No. of steps taken] + 1.
<>Memorize Location: [Map variable] [X co-ordinate(not hero one)] [Y co-ordinate(not hero one)]
:End
<>
:End
<>
:End Loop
<>
Now on Y co-ordinate common event put everything the same inside but change the X co-ordinates used into the Y co-ordinates(except for in the memorize postion thing)
For those of you who are wondering:
"What the heck is that Wait 0.0 Seconds for?"
I'll tell you...
Without it, or some reason the game slows down to a halt and you hero will skip about 5 spaces after a half a second halt...
If there's anything that doesn't work in it, just tell me...
Whew, that took a while....
You should also have someone telling you how many steps have been taken or when you press a certain key it tells you but you'll have to do that youself! It's not hard though...
-
Another thing..
If this is already somewhere else on the 'net then I'll just let you know I hadn't stole it.
-
What in the Nine Planes of Hell is a pedometer???
-
It simply records all the steps you take..
Not that interesting really though...
I should've put a defenition on here for those who did'nt know what one was..
Sorry...
-
There's a few things you can do with this. For example, a 'Step Mine' spell (does damage depending on how many steps you've taken), or a Safari Zone-esque minigame (you have 500 steps, and the game is over when you've used them up).
-
Thats what I said on my forum about it! :D
-
Originally posted by Warxe_PhoenixBlade
There's a few things you can do with this. For example, a 'Step Mine' spell (does damage depending on how many steps you've taken), or a Safari Zone-esque minigame (you have 500 steps, and the game is over when you've used them up).
Yeah, OOR, in a CBS it can be used for random encounters.
But a pedometer o.O sounds a bit like... y'now.
-
ive tried making a pedometer 2 once..YOU HAVE COMPLETED IT FOR ME MWUHAHAHAHA!!!
-
To Warxe_PhoenixBlade: I suppose it can be used for stuff like that...
To Red Giant: That's what I call them...Pedometers...
But call 'em what you like...
To maison_10: Well now you have it!
A question to everyone:
Are there any errors in it at all? If anyone has tried it, that is...
-
In the GBA Harvest Moon once you reach 10000 steps with the pedometer equipped you get a prize.