H/V triggersAdvancedH/V stands for "Horizontal/Vertical"
If the player were to pass through the line, then the H/V trigger will automatically run it's event:
If you set the "spawn with alt direction" entity flag, then it will be a vertical line:
Note that these lines do not stretch infinitely.
1) If you go past the trigger before it has time to catch up to you, you won't trigger it. The H/V trigger object is fast, but it still moves at a set speed (like half of its hitbox or something every frame). This effect is most noticable if you try to trigger an H/V trigger that is placed far away right after entering a map. 2) The H/V trigger is so far away that its AI function isn't called, and thus remains stationary. I'm not 100% sure on this, but in Cave Story entities don't seem to run their AI code if they're too far away from the player. This only seems to effect really big maps though, so the H/V trigger would have to be really really far away.
Previous Lesson: The hex patcher Next Lesson: Script mode |