No worries, here’s the simpler version.
An Autorun freezes the player until it finishes. A parallel lets the player keep moving. The TurnInPlace plugin only breaks Player move routes that come from a parallel. So the one small piece that moves the Player (the step back) goes in its own Autorun, and everything else stays in your parallel like it is now.
Setting up the Autorun, one time:
- Database > Common Events, make a new one called RECOIL
- Trigger: Autorun
- Switch: make a new switch called RecoilGo
- Put these commands in it:
◆Set Movement Route: Player (Skip, Wait)
: Speed: 6
: Blend Mode: Screen
: 1 Step Backward
: Blend Mode: Normal
: Speed: 4
◆Control Switches: #0XXX RecoilGo = OFF
Now any attack that wants the step back just turns RecoilGo ON instead of doing its own Player move route.
1. The S blast, this replaces everything inside your S key check:
◆Control Switches: #0181 ATTACKING = ON
◆Control Variables: #0197 ATTACK TYPE = 5
◆Control Variables: AtkX = Map X of Player
◆Control Variables: AtkY = Map Y of Player
◆Control Variables: AtkDir = Direction of Player
◆If: AtkDir = 2
◆Set Event Location: Attack collision, ({AtkX},{AtkY}), Down
◆End
◆If: AtkDir = 4
◆Set Event Location: Attack collision, ({AtkX},{AtkY}), Left
◆End
◆If: AtkDir = 6
◆Set Event Location: Attack collision, ({AtkX},{AtkY}), Right
◆End
◆If: AtkDir = 8
◆Set Event Location: Attack collision, ({AtkX},{AtkY}), Up
◆End
◆Control Switches: #0XXX RecoilGo = ON
◆Common Event: SCREENSHAKE MEDIUM
◆Set Movement Route: Attack collision (Skip, Wait)
: Transparent OFF
: SE: Maris Haven SFX/Fighting/BSFX SMACK (100, 100, 0)
: Image: MH VitalAttacks1(3)
: Speed: 5
: 1 Step Forward
: 1 Step Forward
: 1 Step Forward
(keep as many 1 Step Forward lines as you have now)
: Transparent ON
◆Control Switches: #0181 ATTACKING = OFF
◆Control Switches: #0182 MOVEMENT ATTACK = OFF
The (Skip, Wait) means ticking both Skip If Cannot Move and Wait for Completion on that route.
Then in the enemy event, add this next to your If: ATTACK TYPE = 0 punch branch, inside the If: SV: AtkCol Y = SV: My Y:
◆If: ATTACK TYPE = 5
◆Common Event: DAMAGE SFX
◆Control Variables: #0189 SV: This event HP -= 25
◆Set Movement Route: This Event
: Blend Mode: Additive
: Wait: 30 frames
: Blend Mode: Normal
◆End
2. The random one, this goes in the parallel with your other attacks, not in an Autorun:
◆Control Switches: #0181 ATTACKING = ON
◆Control Variables: #0197 ATTACK TYPE = 0
◆Play SE: Maris Haven SFX/Fighting/BSFX SHRILL (100, 100, 0)
◆Control Switches: #0XXX RecoilGo = ON
◆Set Event Location: Attack collision, ({BPlayer X},{BPlayer Y})
◆Common Event: SCREENSHAKE MEDIUM
◆Set Movement Route: Attack collision (Wait)
: Image: MH VitalAttacks1(7)
: Transparent OFF
: Speed: 5
: Move at Random
: Move at Random
: Move at Random
: Move at Random
: Move at Random
: Move at Random
: Move at Random
: SE: Maris Haven SFX/Fighting/BSFX DING (90, 100, 0)
: Transparent ON
◆Set Event Location: Attack collision, ({BPlayer X},{BPlayer Y})
◆Control Switches: #0181 ATTACKING = OFF
◆Control Switches: #0182 MOVEMENT ATTACK = OFF
This one shares RECOIL, so it picks up the Speed 6 and Screen flash too. If you want it different, make a second Autorun the same way with its own switch.
3. Yes, and the If: ActionCooldown > 0 block under it goes too. Delete the whole If: ActionCooldown = 0 block (the circled part and the End below it), and replace If: ActionCooldown > 0 with the one here. The top of the event should end up like this:
◆If: ActionTimer > 0
◆Control Variables: #0207 ActionTimer -= 1
◆If: ActionTimer = 0
◆Set Movement Route: Player
: Speed: 4
◆Play SE: Maris Haven SFX/Fighting/BSFX LOW HITS (100, 100, 0)
◆Control Variables: #0206 ActionCooldown = 300
◆End
◆End
◆If: ActionCooldown > 0
◆Control Variables: #0206 ActionCooldown -= 1
◆If: ActionCooldown = 0
◆Play SE: Maris Haven SFX/Fighting/BSFX STUTTER (100, 100, 0)
◆End
◆End
◆If: Script: Input.isTriggered("action3")