Charas-Project

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

Login with username, password and session length
 

News:

Click here to join us on IRC (#charas on irc.freenode.net)!



  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • Up/down cursor
« previous next »
  • Print
Pages: [1]

Author Topic: Up/down cursor  (Read 1684 times)

Offline kirbylover

  • half-demon
  • Initiate
  • *
  • Posts: 13
Up/down cursor
« on: August 28, 2006, 09:32:29 PM »
I've been working on this game, its been on and off and last time I worked on it was like last year so my knowledge of rpgmk 2k is just about dead.

so my question is,
If anyone could please give me a good tutorial on up/down cursors
or post a pic of the script so I can copy it...
thanks.
*EDIT* er.. a Picture-based cursor
Logged

Offline DragonBlaze

  • A Wild DB Appeared!
  • Royal
  • *
  • Posts: 3,329
(No subject)
« Reply #1 on: August 28, 2006, 10:07:41 PM »
Key input process
If [key] = 1
 -variable [position] +1
 -if [possition] > (the maximum options you want)
 --move cursor picture to the first possition
 --set [position] = 1
 - else
 -- move cursor picture down 1
If [key] = 4
 -variable [possition] -1
 -if [possition] < 1
 --move cursor to the bottom possition
 --set [position] = (the maximum options you want)
 -else
 -- move cursor picture up 1

If [key] = 5
- If [position] = 1
-- (preform action for first option)
- If [position] = 2
-- (preform action for second option)
etc..
Logged
Hell Yeah! Just recovered all my old rm2k/3 games from my 10 year old, broken laptop hard drive that had been formatted and had a new OS installed on it. Oh, and I did all of this from my phone. WIN

  • Print
Pages: [1]
« previous next »
  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • Up/down cursor
 

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