Charas-Project
Game Creation => Requests => RPG Maker Programming => Topic started by: Linkforce on December 05, 2005, 06:39:08 PM
-
Ok, so basically I have a Dashing System where you simply press Shift, and the Heroes graphic changes to a sprinting one, and the speed is increased. Well, this is all good, but when I have to teleport from a Town for ex. to the World Map, then it's a whole different story. How do I make it so right before I teleport, the Dash is disabled and the Hero walks normally? This way, the small sprite on the world map will show, and the speed will be appropriate. If its confusing, I'll try and explain better.
-
Why not make the dash system switch activated? Like if you enter a town, the teleport event also turns on the dash event switch, while the exit town teleport turns off the dash event? In theory, that should work, or is there some kind of hitch involved?
-
Two ways:
First, you could make it a holding shift script, which should look something like this:

Or, a anti- dash script, which should look like this:

That should do it ;)
Edit- Yeah.... just right click on the super small pictures and copy the url to see em. Sorry bout their size.
-
See, but my system works by holding down shift. So, I just need to know how to disable all the changes while sprinting, right before entering the world map. Like Archem2 said...I tried what he said, and in theory it would work, but it doesn't.
Meiscool, can any of the things you posted help?
-
Yes... The one that says: Holding shift script!
Sorry for the sarcastic tone, but I put it right up there already....
-
Ok, so I just make this another Common event, and this will fix my problem?
-
Replace your dash system with Meiscool's and it'll work.
-
Originally posted by drenrin2120
Replace your dash system with Meiscool's and it'll work.
Couldn't have worded it better. You'll just need to use your own switches and varibles.
-
Ok, so If i replace yours with mine, how will pressing shift make the Hero run? Amd how will it change his graphic too? And how will it know that if I let go of the button, it goes back to normal speed?
Edit- Never mind..I was looking at the wrong one. ^^'
-
Ok...it's not working. What's wrong? :(
-
*bump*
-
Hmm. Ok, first, you've got set it to not wait for the button to be pressed. Also, you must have it set to shift. You need to put a wait 0.0 right after the key imput too (think I forgot to put that in, sorry). You've also got to make sure that in a town, and set to dash are both on, or it won't work. Here's the one I use for my game:
-
I dont understand it. Whats Deflection Skill? ..........ugh...I'm so hopless... :(
-
I think that just might not be necessary. It looks like part of another skill avaliable in his game. If it is, (and if he confirms it) you prob'ly can just ignore it.
-
Yeah, deflection skill is just the key input. I my game, you can only dash in towns and use shift to attack/deflect attacks in the wild.
-
the script looks about right, so what seems to be the issue here?
Linkforce have you inputed it yet and tested it?
-
Yay! It works! :D Ok, so now, in he teleport Event that brings me to the world map, I turn off the switch "In a Town" right?
-
if the In Town Switch is meant for dashing and no tele then yes turn that off so you can teleport when on world map
-
Ok good. Thanks sooooooooooooooo much Meiscool! I owe you. :D And thanks Arcanagirl for clearing that up. ^^ Now I can release the Tech Demo in peace. XD
-
ENJOY! :D
-
Ok, theres a problem. I tested it, and if I hold shift as I teleport to the World Map, he stays big (where as becoming small) and sometimes his speed stays the same...
-
*sigh* again you must not've put in the full code. You MUST make the speed increases look like I have mine, and you must make your script look EXACTLY like mine.
Your speed increase movements should look like this:
Speed up
Speed up
Speed up
Speed up
Speed up
Speed down
Speed down
Your speed decreases should look like this:
Speed up
Speed up
Speed up
Speed up
Speed up
Speed down
Speed down
Speed down
It MUST look like that to work. You could ask me why, or you can just leave it be and try it out.
Edit- As to the big/small thing, you'll need to edit the In town/Not in town Else Handler. If in town in on, then it would switch to the big guy's chara. If not, then it goes to the else handler and switches the chara to small him.
-
Ok...not he just doesnt stop running........ :x