• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Jump Tutorial

Level 2
Joined
May 29, 2007
Messages
1
Jump Tutorial

This is a tutorial on how to create a Jump ability (gui)

Step 1:
First of all create an ability based on "Channel", call it Jump.
These are the options i changed:
attachment.php



Step 2:
Now go to the trigger editor. Create a trigger and name it "Jump Move". Now create a variable called jumper (unit)
Set it to initially off

  • Jump Move
    • Events
      • Time - Every 0.17 seconds of game time
    • Conditions
    • Actions
      • Unit - Move jumper instantly to ((Position of jumper) offset by 8.00 towards (Facing of jumper) degrees)

Step 3:
Create a new trigger called jump.
It should look like this:
  • Jump
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Jump
    • Actions
      • Set jumper = (Triggering unit)
      • Unit - Pause jumper
      • Unit - Add Crow Form to jumper
      • Unit - Turn collision for jumper Off
      • Unit - Remove Crow Form from jumper
      • Animation - Change jumper flying height to 400.00 at 1000.00
      • Trigger - Turn on Jump Move <gen>
      • Wait 1.00 seconds
      • Trigger - Run Jump Turn Off <gen> (ignoring conditions)
Step 4: As you can see here, there are a trigger called Jump Turn Off. So lets create it. And dont forget to set it to Initially Off.
It should look like this:
  • Jump Turn Off
    • Events
    • Conditions
    • Actions
      • Animation - Change jumper flying height to 0.00 at 1000.00
      • Unit - Turn collision for jumper On
      • Unit - Unpause jumper
      • Wait 0.50 seconds
      • Trigger - Turn off Jump Move <gen>

After you learned this it should be pretty easy to create more advanced jump systems.
 

Attachments

  • TUT1.jpg
    TUT1.jpg
    14.2 KB · Views: 796
Last edited:
Top