1. Head to the 33rd Modeling Contest Poll and drink to your heart's desire.
    Dismiss Notice
  2. Choose your means of doom in the 17th Mini Mapping Contest Poll.
    Dismiss Notice
  3. A slave to two rhythms, the 22nd Terraining Contest is here.
    Dismiss Notice
  4. The heavens smile on the old faithful. The 16th Techtree Contest has begun.
    Dismiss Notice
  5. The die is cast - the 6th Melee Mapping Contest results have been announced. Onward to the Hive Cup!
    Dismiss Notice
  6. The glory of the 20th Icon Contest is yours for the taking!
    Dismiss Notice
  7. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Jump Tutorial

Discussion in '"Graveyard"' started by Histenchist, Jun 4, 2007.

  1. Histenchist

    Histenchist

    Joined:
    May 29, 2007
    Messages:
    1
    Resources:
    0
    Resources:
    0
    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: [​IMG]


    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.
     

    Attached Files:

    • TUT1.jpg
      TUT1.jpg
      File size:
      14.2 KB
      Views:
      717
    Last edited: Jun 4, 2007
  2. Jacek

    Jacek

    Joined:
    Nov 25, 2004
    Messages:
    1,291
    Resources:
    0
    Resources:
    0
    great

    i hope it's unfinished
     
  3. Diablo-dk

    Diablo-dk

    Joined:
    Nov 10, 2004
    Messages:
    369
    Resources:
    3
    Maps:
    1
    Spells:
    1
    Tutorials:
    1
    Resources:
    3
    does not seem like much of a tutorial, more like a simple trigger showoff.
    It doesn't explain how the trigger works, and leaks alot.

    0.17 period? this will make a really bad looking jump, rather set it to 0.03.

    Also you should mention that this is not MUI.
    Needs alot of work, or instead post it as a spell in the spell section.
     
  4. PurplePoot

    PurplePoot

    Joined:
    Dec 14, 2005
    Messages:
    11,161
    Resources:
    3
    Maps:
    1
    Spells:
    1
    Tutorials:
    1
    Resources:
    3
    Aren't leaks basically banned in trigger tutorials?

    But yeah, it's not MUI, it's choppy, it's leaky, and waits are really inaccurate
     
  5. PurgeandFire

    PurgeandFire

    Code Moderator

    Joined:
    Nov 11, 2006
    Messages:
    7,429
    Resources:
    18
    Icons:
    1
    Spells:
    4
    Tutorials:
    9
    JASS:
    4
    Resources:
    18
    Wee, look mah, I jumped in a triangle!
    ......./\
    ....../...\
    ..../.......\
    ../...........\
    /_________\

    / or \ = Path

    Man, I should've used the parabola function instead, mah! Curves are cooler!
     
  6. Wolverabid

    Wolverabid

    Joined:
    Oct 23, 2006
    Messages:
    8,302
    Resources:
    5
    Tutorials:
    5
    Resources:
    5
    Histenchist: Welcome to the "Graveyard"

    ~ Thread entombed.