Home
Help
Search
Calendar
Login
Register
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
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
»
Trying to create a Crafting system...
« previous
next »
Print
Pages: [
1
]
Author
Topic: Trying to create a Crafting system... (Read 3263 times)
xshobux
Initiate
Posts: 4
Trying to create a Crafting system...
«
on:
August 12, 2011, 08:09:56 AM »
Hi. I'm trying to create a simple crafting system for my game in progress but I can't seem to get the whole "key input processing" thing down. For example, if you press UP the cursor moves up, and so on. the script for CREATING the items is fine, the script for SELECTING them is not. Does anyone know of a similar script that could help me out? Thanks in advance.
Here's a link to what it looks like:
http://i53.tinypic.com/2yxhc1t.png
Logged
Prpl_Mage
Administrator
Sage
Posts: 7,644
The Administrator Mage
Re: Trying to create a Crafting system...
«
Reply #1 on:
August 12, 2011, 08:38:13 AM »
Well, I don't know how many pictures you are using ect.
The easy way is to make the hero look like a cursor and place the events below him, activated by action key and make sure he can't move away from the choices.
If you instead want some sort of "turn page" and have a parallel process, wait for key to be pressed - key input process. You also need a conditional branch somewhere that checks the value of the variable it is stored in.
In other words. If you press up, the value becomes 4, down is 1, left is 2 and right is 3. In the conditional branch for pressing left you check if the variable is 2. If it is 2, move the cursor or whatever it was you needed moving.
Feel free to tell me I didn't even slightly answer you question. But some more information could probably get me to get you a more precise answer to this issue. Good luck.
Logged
Cool RPGM Project!
Sprite till you die
Oh my god, this was ...10 years ago...
xshobux
Initiate
Posts: 4
Re: Trying to create a Crafting system...
«
Reply #2 on:
August 12, 2011, 08:48:26 AM »
I like the hero cursor idea. That might work. It would probably be easier to create an entire separate map for this then, yes?
EDIT: Also, the three picture layers I'm using is the background "Crafting", the box where the item shows up, and the red highlight.
Logged
xshobux
Initiate
Posts: 4
Re: Trying to create a Crafting system...
«
Reply #3 on:
August 12, 2011, 12:02:42 PM »
Well I did what you said and made the hero a cursor to select the items. Here's what it came out as:
http://i53.tinypic.com/2639chs.png
Thanks for the help. It is appreciated a lot.
Logged
Prpl_Mage
Administrator
Sage
Posts: 7,644
The Administrator Mage
Re: Trying to create a Crafting system...
«
Reply #4 on:
August 12, 2011, 10:21:24 PM »
Glad I could help, let me know if there's anything else.
Logged
Cool RPGM Project!
Sprite till you die
Oh my god, this was ...10 years ago...
drenrin2120
Global Moderator
Sage
Posts: 6,101
Re: Trying to create a Crafting system...
«
Reply #5 on:
August 15, 2011, 01:42:24 PM »
Hey, that's a nifty looking menu there!
«
Last Edit: August 15, 2011, 09:09:59 PM by drenrin2120
»
Logged
Print
Pages: [
1
]
« previous
next »
Charas-Project
»
Game Creation
»
Requests
»
Trying to create a Crafting system...