Charas-Project
Game Creation => Requests => RPG Maker Programming => Topic started by: Linkforce on September 17, 2006, 05:13:33 PM
-
Okay, so here's my question.
I have a dashing system where if you press and hold the shift key, you can sprint and when you let go, you return to walking speed. Also, the sprite changes to a running sprite. So, is there a way for the sprite to change to its running sprite acording to who is the party leader?
-
If by party leader you mean the hero at the top of the menu, etc..., then no. Not unless you disable the Order command and put some code for every time the roster changes. You could however make a party leader system that changes who is walking around by pressing a button, say... 1.
So you'd have a common event or something like this.
-Parallel process
<>Input precessing [Leaderchange]
<>if var[Leaderchange] is equal to 11
<>var[Currentleader] plus 1
--put some stuff to make sure the numbers are right, as in you don't go beyond the characters you have, etc...--
Then when you change the hero graphics, you'd do something like this.
<>if var[Currentleader] is eqaul to 1
<>change hero gfx to [BobRun]
<>if var[Currentleader] is eqaul to 2
<>change hero gfx to [SusyRun]
<>if var[Currentleader] is eqaul to 3
<>change hero gfx to [MarkRun]
...
...
...
Get the idea?
-
Use the change sprite occ command instead of the move event command. Change sprite occ allows you to change the sprite of a specfic character.
-
Damnit, I always think too much about things.
Do what Meiscool says. Change the gfx of every hero, so regardless of the current one, it will change.