Default Actions
Not sure how comprehensible this will be, but hopefully it helps
im not great with rm2k3 so this is pretty unoptimised ):
Things needed:
Default animation (sitting in this case)
Default Switch (called [USE]None in this tutorial)
Variable for the button input (called Use Effect in this tutorial)
If the action is toggled, you will also need:
Toggle Switch (called Is Sitting in this tutorial)
Sprites in the final state of the action (sitting and standing in this case)
This will be a common event with a parallel process trigger and no condition switch
Sprites needed (visual demo):
Sitting (Called: āFull Yoshika Sheet Three alt, 7ā):
(this is the most space efficient way of fitting them, at first i had left and right directions separately)
Standing (Called: āFull Yoshika Sheet, 1ā):
~~~~~~
First, you'll need to set up key input processing for the key you'll use for the action:
(this is found on page three)
You will need a conditional branch for when the input variable is pressed (in this case it's the 1 button, so the variable will be equal to 11)
(This branch doesn't need an else statement)
Inside this branch, you will need another conditional branch to check if the Default Switch is on
(This branch also doesn't need an else statement)
Inside this branch (sorry there are so many nested branches T-T) you will need a conditional branch for the player's direction (unless the direction doesn't matter)
(This branch also doesn't need an else statement)
The final nested branch is for toggle effects and it checks if the toggle switch is off
(This branch does need an else statement)
For sitting down, you need to:
Set move route to Wait (I did 3x)
Hide player character
Change player sprite to sitting (or whatever your default is)
Show animation
Unhide player character
Set move route to Wait (repeat) (So the player can't move while sitting)
Set the input variable back to 0
Turn on the Toggle Switch
What it should look like:
The else section is used for standing up, and you need to:
Set move route to Wait (I did 3x)
Hide player character
Change player sprite to standing
Show animation
Unhide Player character
Set input variable back to 0
Turn Toggle Switch off
What it should look like:
You need to copy/paste this for each of the directions (don't accidentally paste it into the previous direction, it won't break the code or cause an error, but it'll not work for that direction)
~~~~~~
And then you're done :D
Hopefully it was understandable :3















