RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

[XP] Double Tap Dash Button 3

Started by Punk, November 26, 2006, 05:38:34 AM

0 Members and 1 Guest are viewing this topic.

Punk

Requires
3 Variables
4 Switches
5 Common Events

Check Tapping
Common Event: Check Tapping
Trigger: Parallel
Condition Switch: Never Tapped

List of event commands
@>Conditional Branch: Script: Input.trigger?(Input::UP)
@>>Control Variables: [Tap 1] = 2
@>>Control Switches: [Tapped Once] = ON
@>>Control Switches: [Never Tapped] = OFF
@>>Branch End
@>Conditional Branch: Script: Input.trigger?(Input::DOWN)
@>>Control Variables: [Tap 1] = 8
@>>Control Switches: [Tapped Once] = ON
@>>Control Switches: [Never Tapped] = OFF
@>>Branch End
@>Conditional Branch: Script: Input.trigger?(Input::LEFT)
@>>Control Variables: [Tap 1] = 4
@>>Control Switches: [Tapped Once] = ON
@>>Control Switches: [Never Tapped] = OFF
@>>Branch End
@>Conditional Branch: Script: Input.trigger?(Input::RIGHT)
@>>Control Variables: [Tap 1] = 6
@>>Control Switches: [Tapped Once] = ON
@>>Control Switches: [Never Tapped] = OFF
@>>Branch End


Check Tapping Again
Common Event: Check Tapping Again
Trigger: Parallel
Condition Switch: Tapped Once

List of event commands
@>Conditional Branch: Script: Input.trigger?(Input::UP)
@>>Control Variables: [Tap 2] = 2
@>>Control Switches: [Verification] = ON
@>>Control Switches: [Tapped Once] = OFF
@>>Branch End
@>Conditional Branch: Script: Input.trigger?(Input::DOWN)
@>>Control Variables: [Tap 2] = 8
@>>Control Switches: [Verification] = ON
@>>Control Switches: [Tapped Once] = OFF
@>>Branch End
@>Conditional Branch: Script: Input.trigger?(Input::LEFT)
@>>Control Variables: [Tap 2] = 4
@>>Control Switches: [Verification] = ON
@>>Control Switches: [Tapped Once] = OFF
@>>Branch End
@>Conditional Branch: Script: Input.trigger?(Input::RIGHT)
@>>Control Variables: [Tap 2] = 6
@>>Control Switches: [Verification] = ON
@>>Control Switches: [Tapped Once] = OFF
@>>Branch End


Timer
Common Event: Timer
Trigger: Parallel
Condition Switch: Tapped Once

@>Wait: 5 Frames
@>Control Variables: [Time] += 1
@>Conditional Branch: Variable: [Time] == 2
@>>Control Variables: [Tap 1] = 0
@>>Control Variables: [Tap 2] = 0
@>>Control Variables: [Time] = 0
@>>Control Switches: [Never Tapped] = ON
@>>Control Switches: [Tapped Once] = OFF


Verify Correct Button
Common Event: Verify Correct Button
Trigger: Parallel
Condition Switch: Verification

List of Event Commands:
@>Conditional Branch: Variable [Tap 1] == Variable [Tap 2]
@>>Control Switches: [Tapped Twice] = ON
@>>Control Switches: [Tapped Once] = OFF
@>>Control Switches: [Verification] = OFF
@>>Else
@>>Control Switches: [Never Tapped] = ON
@>>Control Switches: [Tapped Once] = OFF
@>>Control Switches: [Verification] = OFF


Dashing (Success)
Common Event: Dashing (Success)
Trigger: Parallel
Condition Switch: Tapped Twice

@>Conditional Branch: Script: Input.press?(Input::UP) or Input.press?(Input::DOWN) or Input.press?(Input::LEFT) or Input.press?(Input::RIGHT)
@>>Set Move Route: Player:
$>Change Speed: 5
@>>Else
@>>Set Move Route: Player:
$>Change Speed: 4
@>>Control Variables: [Tap 1] = 0
@>>Control Variables: [Tap 2] = 0
@>>Control Variables: [Time] = 0
@>>Control Switches: [Tapped Twice] = OFF
@>>Control Switches: [Never Tapped] = ON
@>>Branch End

Best-Gammer

omg y cant people add the game name to there topic!?


is this for xp of 2k3
September 13, 2007, 06:56:52 PM <-  Last Login
.
I returned and better than ever!
.
Don't mess with me.
.
Ever....

Punk


Best-Gammer

idont get it...this should be in scripts....havent seen 2k3 varibles in a while
September 13, 2007, 06:56:52 PM <-  Last Login
.
I returned and better than ever!
.
Don't mess with me.
.
Ever....

Blizzard

These are event systems, they don't belong into scripts.
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!