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
»
RPG Maker Programming
»
coding help needed
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: coding help needed (Read 6018 times)
DragonBlaze
A Wild DB Appeared!
Royal
Posts: 3,329
(No subject)
«
Reply #15 on:
February 17, 2006, 09:09:05 PM »
XD yeah, my bad. I'm too lazy to write down the coding, so I just copied it and pasted it instead, I guess I forgot to change the greater than to less than. But yeah, change it to what meiscool has writen down.
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
Shadowless1
_
Acolyte
Posts: 495
(No subject)
«
Reply #16 on:
February 17, 2006, 09:48:45 PM »
cheers,thanks a lot
it works but for some reason it kind of lags, it goes to the location where enter was previously was pressed
heres the code now:
Common Event 0002:Cursor Parallel process
<>Variable Oper:[0002:Cursor X2] set, Var [0001]'s Value
<>Variable Oper:[0004:Cursor Y2] set, Var [0003]'s Value
<>Key input proc: [0007:Cursor input]
<>Branch if Var [0007:Cursor input] is 5
<>Loop
<>Branch if Var [0002:Cursor X2] is V[0005] Greater
<>Move event: player marine, move right
<>
:Else Handler
<>Branch if Var [0002:Cursor X2] is V[0005] Less
<>Move event: player marine, move left
<>
End
<>Wait 0.0 sec
<>Branch if Var [0004:Cursor Y2] is V [0006] Greater
<>Move event: player marine, move down
<>
:Else Handler
<>Branch if VAr [0004:Cursor Y2] is V [0006] Less
<>Move event: player marine, move up
<>
End
<>Wait 0.0 Sec
<>Branch if Var [0004:Cursor Y2] is V[0006] Equal
<>Branch if Var [0002:Cursor X2] is V[0005] Equal
<>Break loop
<>Variable Oper: [0007:Cursor input] Set, 0
<>
End
<>
End
<>
End Loop
<>
End
Logged
<img src="
http://i38.tinypic.com/1628lmr.gif
">
<img src="
http://i4.tinypic.com/25rctmo.gif
"><img src="
http://i2.tinypic.com/25rcu4y.png
">
<img src="
http://i5.tinypic.com/25rcuhx.jpg
"><img src="
http://i5.tinypic.com/25rcux3.gif
">
Meiscool-2
Sage
Posts: 7,030
If you support n00bs, you support communism.
(No subject)
«
Reply #17 on:
February 17, 2006, 10:27:59 PM »
at the begining of the loop, put another key input, and make it to where you don't have to wait untill the key is pressed to continue the script. Make it where (in the loop) if Cursor input ever equals 5, then it breaks then it jumps up to label one (which you should put at the top of the script. Also, cut your current key input and put it at the very top of the script, right before the label. The label should be right under it.
It'll look like this:
Common Event 0002:Cursor Parallel process
<>Key input proc: [0007:Cursor input] (wait)
Label 1
<>Variable Oper:[0008: Enter Wait] set, 0
<>Variable Oper:[0002:Cursor X2] set, Var [0001]'s Value
<>Variable Oper:[0004:Cursor Y2] set, Var [0003]'s Value
<>Branch if Var [0007:Cursor input] is 5
<>Loop
<>Varible [0008] +1
<>Branch if Var [0008: Enter Wait] is 5 or more
<>Key input proc: [0007:Cursor input] (no wait)
<>Branch if Var [0007: Cursor input] is 5
<>Jump to Label 1
End
End
<>Branch if Var [0002:Cursor X2] is V[0005] Greater
<>Move event: player marine, move right
<>
:Else Handler
<>Branch if Var [0002:Cursor X2] is V[0005] Less
<>Move event: player marine, move left
<>
End
<>Wait 0.0 sec
<>Branch if Var [0004:Cursor Y2] is V [0006] Greater
<>Move event: player marine, move down
<>
:Else Handler
<>Branch if VAr [0004:Cursor Y2] is V [0006] Less
<>Move event: player marine, move up
<>
End
<>Wait 0.1 Sec
<>Branch if Var [0004:Cursor Y2] is V[0006] Equal
<>Branch if Var [0002:Cursor X2] is V[0005] Equal
<>Break loop
<>Variable Oper: [0007:Cursor input] Set, 0
<>
End
<>
End
<>
End Loop
<>
End
Logged
Most Recent:
________________________
Old Stuff:
Shadowless1
_
Acolyte
Posts: 495
(No subject)
«
Reply #18 on:
February 17, 2006, 10:47:12 PM »
cheers, thanls man that rocks
Logged
<img src="
http://i38.tinypic.com/1628lmr.gif
">
<img src="
http://i4.tinypic.com/25rctmo.gif
"><img src="
http://i2.tinypic.com/25rcu4y.png
">
<img src="
http://i5.tinypic.com/25rcuhx.jpg
"><img src="
http://i5.tinypic.com/25rcux3.gif
">
Print
Pages:
1
[
2
]
« previous
next »
Charas-Project
»
Game Creation
»
Requests
»
RPG Maker Programming
»
coding help needed