Charas-Project

Game Creation => Requests => RPG Maker Programming => Topic started by: Linkforce on December 05, 2005, 06:39:08 PM

Title: Dashing System
Post 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.
Title:
Post by: Archem on December 06, 2005, 12:04:02 AM
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?
Title:
Post by: Meiscool-2 on December 06, 2005, 12:41:13 AM
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.
Title:
Post by: Linkforce on December 06, 2005, 12:47:10 AM
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?
Title:
Post by: Meiscool-2 on December 06, 2005, 01:18:50 AM
Yes... The one that says: Holding shift script!

Sorry for the sarcastic tone, but I put it right up there already....
Title:
Post by: Linkforce on December 06, 2005, 02:00:53 AM
Ok, so I just make this another Common event, and this will fix my problem?
Title:
Post by: drenrin2120 on December 06, 2005, 03:04:30 AM
Replace your dash system with Meiscool's and it'll work.
Title:
Post by: Meiscool-2 on December 06, 2005, 07:59:43 PM
Quote
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.
Title:
Post by: Linkforce on December 06, 2005, 10:09:17 PM
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.  ^^'
Title:
Post by: Linkforce on December 06, 2005, 11:31:46 PM
Ok...it's not working.  What's wrong?  :(
Title:
Post by: Linkforce on December 07, 2005, 08:26:21 PM
*bump*
Title:
Post by: Meiscool-2 on December 07, 2005, 08:33:00 PM
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:
Title:
Post by: Linkforce on December 07, 2005, 09:41:28 PM
I dont understand it.  Whats Deflection Skill?  ..........ugh...I'm so hopless... :(
Title:
Post by: Archem on December 07, 2005, 10:26:57 PM
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.
Title:
Post by: Meiscool-2 on December 07, 2005, 10:32:46 PM
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.
Title:
Post by: Arcanagirl on December 07, 2005, 11:56:48 PM
the script looks about right, so what seems to be the issue here?

Linkforce have you inputed it yet and tested it?

Title:
Post by: Linkforce on December 08, 2005, 01:48:21 AM
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?
Title:
Post by: Arcanagirl on December 08, 2005, 01:50:09 AM
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
Title:
Post by: Linkforce on December 08, 2005, 02:03:13 AM
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
Title:
Post by: Meiscool-2 on December 08, 2005, 02:18:10 AM
ENJOY! :D
Title:
Post by: Linkforce on December 08, 2005, 08:38:28 PM
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...
Title:
Post by: Meiscool-2 on December 08, 2005, 08:51:10 PM
*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.
Title:
Post by: Linkforce on December 08, 2005, 09:32:17 PM
Ok...not he just doesnt stop running........ :x