Charas-Project

  • Home
  • Help
  • Search
  • Calendar
  • Login
  • Register
*
Please login or register.

Login with username, password and session length
 

News:

New forum theme up and running!



  • Charas-Project »
  • Game Creation »
  • Requests »
  • Tutorials »
  • Pedometer tutorial
« previous next »
  • Print
Pages: [1]

Author Topic: Pedometer tutorial  (Read 4128 times)

Offline Xen

  • (I can't think of anything to put here, stupid brain...)
  • Acolyte
  • *
  • Posts: 408
  • I am I. You are you. Let's leave it at that...
Pedometer tutorial
« 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...
Logged
LINKS - 'cause I can never think of anything else better to show in my sig...
Star-Scape
Dragon Twilight - The Website
My (boring) Life
RPG-Knights

Offline Xen

  • (I can't think of anything to put here, stupid brain...)
  • Acolyte
  • *
  • Posts: 408
  • I am I. You are you. Let's leave it at that...
(No subject)
« Reply #1 on: October 11, 2004, 06:51:53 PM »
Another thing..
If this is already somewhere else on the 'net then I'll just let you know I hadn't stole it.
Logged
LINKS - 'cause I can never think of anything else better to show in my sig...
Star-Scape
Dragon Twilight - The Website
My (boring) Life
RPG-Knights

Offline Sarg

  • BattleCharaSet Generator Guy
  • Initiate
  • *
  • Posts: 67
(No subject)
« Reply #2 on: October 11, 2004, 08:37:21 PM »
What in the Nine Planes of Hell is a pedometer???
Logged
"Those who sacrifice liberty for security deserve neither" Ben Franklin

Visit www.rm2k3future.tk for all your futuristic resources needs!

Offline Xen

  • (I can't think of anything to put here, stupid brain...)
  • Acolyte
  • *
  • Posts: 408
  • I am I. You are you. Let's leave it at that...
(No subject)
« Reply #3 on: October 11, 2004, 08:39:15 PM »
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...
Logged
LINKS - 'cause I can never think of anything else better to show in my sig...
Star-Scape
Dragon Twilight - The Website
My (boring) Life
RPG-Knights

Offline WarxePB

  • Action Sue
  • Royal
  • *
  • Posts: 3,601
  • What killed the dinosaurs?
    • The Gigaverse
(No subject)
« Reply #4 on: October 11, 2004, 09:18:05 PM »
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).
Logged
Blog: The Gigaverse
Twitter: Initial Chaos

Offline VahnGrave

  • Behind the Wall of Sleep
  • Zealot
  • *
  • Posts: 599
(No subject)
« Reply #5 on: October 12, 2004, 05:05:45 AM »
Thats what I said on my forum about it! :D
Logged
Glen Benton is a pedophile.

Offline Red Giant

  • Leader
  • *
  • Posts: 2,608
  • The best damn bio in the whole damn world. YEAH!!
(No subject)
« Reply #6 on: October 12, 2004, 05:57:14 AM »
Quote
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.
Logged

Offline maison_10

  • you cant beat me. that you wont..
  • Initiate
  • *
  • Posts: 12
  • im 13yrs old single..brown eyes brown hair thats it.........
intresting......
« Reply #7 on: October 12, 2004, 06:13:01 AM »
ive tried making a pedometer 2 once..YOU HAVE COMPLETED IT FOR ME MWUHAHAHAHA!!!
Logged

Offline Xen

  • (I can't think of anything to put here, stupid brain...)
  • Acolyte
  • *
  • Posts: 408
  • I am I. You are you. Let's leave it at that...
(No subject)
« Reply #8 on: October 12, 2004, 02:12:44 PM »
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...
Logged
LINKS - 'cause I can never think of anything else better to show in my sig...
Star-Scape
Dragon Twilight - The Website
My (boring) Life
RPG-Knights

Offline MrMister

  • damn u vile woman
  • Royal
  • *
  • Posts: 3,506
(No subject)
« Reply #9 on: October 17, 2004, 10:29:00 PM »
In the GBA Harvest Moon once you reach 10000 steps with the pedometer equipped you get a prize.
Logged
you look like an orphan

  • Print
Pages: [1]
« previous next »
  • Charas-Project »
  • Game Creation »
  • Requests »
  • Tutorials »
  • Pedometer tutorial
 

  • SMF 2.0.10 | SMF © 2015, Simple Machines
  • XHTML
  • 2O11
  • RSS
  • WAP2
  • Simple Machines Forum