I feel so dirty to ask, but I must make a script request .
What I'm asking may or may not be simple. I'm not sure. I can script a fairly noobish window, but when it comes to changing dynamics like sprite movement, I'm at a total loss.
Anyway, I'm looking for Puck's More StandFrames System, integrated with a simple Dash add-on.
You can find Puck's script here:
http://rmxp.org/forums/index.php?topic=36387.0
Basically, this script reads filenames to determine how many frames/directions a sprite has. If it has no special filename text, it plays like a normal 4x4 grid sprite. It has an option for 8-directional movement, which I will probably not be using.
What I would like, is when the player holds down a key (say, shift), the character will go from walking at Speed 4 to walking at Speed 5. Simple stuff.
However, I want the sprite graphic to change to a "dash" sprite. Additionally, if the character stops moving, even if the Sprint key/button is depressed, it will go back to the Idle stance. That may be less feasible, but it looks so crappy to have the character leaning into a run when they're facing a wall going nowhere :P
I don't want it to be necessary to have the Sprint animation! My hero character will end up with ~60 sprites only for them (expressions, actions, etc), and I don't want retarded Dash equivalents for every stinkin' one :P. Also, I need it to be able to be turned on or off at my will (through events).
---------------
IN SUMMARY
Puck's sprite system. Character has an Idle and a Walking Animation. Idle when they stop.
Player presses Shift.
If player is moving, sprite set changes to Sprint version.
If player is not moving, it goes to Idle, regardless of the key pressed.
When player lets go of Shift, sprite reverts to Walking Animation/Idle combo.
It is not necessary to have the Dash Sprite for every sprite.
Dash capabilities can be turned off at my will (with events).
Let me know how possible this is.
What I'm asking may or may not be simple. I'm not sure. I can script a fairly noobish window, but when it comes to changing dynamics like sprite movement, I'm at a total loss.
Anyway, I'm looking for Puck's More StandFrames System, integrated with a simple Dash add-on.
You can find Puck's script here:
http://rmxp.org/forums/index.php?topic=36387.0
From Puck:
what it does:
- allows you to set the number of frames, standframes and directions for each character-graphic
by adding a short string to their name
- you can set default values so you don't need to edit every file
- you can choose 1 or more (animated) standframes which will only be shown while standing still
and are NOT used for the move-animation
- you can adjust the stand- and move-animationspeed
- you can activate 8-directional movement
compatibility:
- most likely not compatible with other movement systems and scripts that change charactergraphic
script & demo:
Script as a ".txt" file
Demo Project
edit: I had to remove the script because it was too long... you can copy it from the demo project or download it as a .txt file
what it does:
- allows you to set the number of frames, standframes and directions for each character-graphic
by adding a short string to their name
- you can set default values so you don't need to edit every file
- you can choose 1 or more (animated) standframes which will only be shown while standing still
and are NOT used for the move-animation
- you can adjust the stand- and move-animationspeed
- you can activate 8-directional movement
- just place it above main and below the other scripts
- you can set up as many frames as you want for heros and events by adding f[n] to the name of their charactergraphic
("n" stands for the number of frames)
- you can set the directions for each charactergraphic by adding d[n] to its name ("n" is the number of directions and has to be 4 or 8 )
- you can set standframe(s) for your charactergraphic (which is/are only used if you don't move) by adding s["n"] to its name
("n" stands for the number of standframes)
- you can set default values for frames standframes and directions so you don't need to change the name of every charactergraphic
just edit "DEFAULT_FRAMES", "DEFAULT_STANDFRAMES" and "DEFAULT_DIRECTIONS" to your needs
- you can activate 8-directional movement by setting "EIGHT_DIRECTIONS" to "true"
- if you set "STANDANIMATION" to "true" and a charactergraphic has more than 1 standframe, it will be animated if it doesn't move.
the standframes will NOT be used for the move-animation
- you can change the standanimation-speed be changing "STANDANIMATION_SPEED". the number means how long each
frame will be displayed, so a smaller value means a faster animation
- you can change the "MOVEANIMATION_SPEED", a smaller value means a faster animation (does NOT affect the movespeed).
most likely you will not need to change this because the animation speed is automatically increased if a graphic has a lot of frames
compatibility:
- most likely not compatible with other movement systems and scripts that change charactergraphic
script & demo:
Script as a ".txt" file
Demo Project
edit: I had to remove the script because it was too long... you can copy it from the demo project or download it as a .txt file
Basically, this script reads filenames to determine how many frames/directions a sprite has. If it has no special filename text, it plays like a normal 4x4 grid sprite. It has an option for 8-directional movement, which I will probably not be using.
What I would like, is when the player holds down a key (say, shift), the character will go from walking at Speed 4 to walking at Speed 5. Simple stuff.
However, I want the sprite graphic to change to a "dash" sprite. Additionally, if the character stops moving, even if the Sprint key/button is depressed, it will go back to the Idle stance. That may be less feasible, but it looks so crappy to have the character leaning into a run when they're facing a wall going nowhere :P
I don't want it to be necessary to have the Sprint animation! My hero character will end up with ~60 sprites only for them (expressions, actions, etc), and I don't want retarded Dash equivalents for every stinkin' one :P. Also, I need it to be able to be turned on or off at my will (through events).
---------------
IN SUMMARY
Puck's sprite system. Character has an Idle and a Walking Animation. Idle when they stop.
Player presses Shift.
If player is moving, sprite set changes to Sprint version.
If player is not moving, it goes to Idle, regardless of the key pressed.
When player lets go of Shift, sprite reverts to Walking Animation/Idle combo.
It is not necessary to have the Dash Sprite for every sprite.
Dash capabilities can be turned off at my will (with events).
Let me know how possible this is.