Main Page
News
History
Limitations
Graphics
Music
Levels
Gameplay
Now Browsing
Links
Download

ToggleFlags

        TOGGLEFLAGS                Flags

Sometimes during the lifetime of a baddie, you need to change some of the system flags. For example, what if you needed to make him invincable for a second while he moved around? To do that you would need to set the NOSHOOT flag, then clear it again once he becomes vulnerable. With SetFlags and ClearFlags, this command allows you to alter the objects flags while the path is running.


Example: new habits.

Simply toggling the fire on/off or indeed off/on:

        Pause 10
        START        SimpleFire, Baddie1, 340, 100, KILLCLIP|FIRE
        Pause 10
        START        SimpleFire, Baddie1, 340, 100, KILLCLIP
        Pause 10
        START        SimpleFire, Baddie1, 340, 100, KILLCLIP
        Pause 10
        START        SimpleFire, Baddie1, 340, 100, KILLCLIP|FIRE

        PFOR 30
                MOVE -2,0
        PNEXT
        ToggleFlags Fire        ; Stop firing
        PFOR 90
                MOVE -2,0
        PNEXT
        KillClip

See also:
SetFlags
ClearFlags
Fire
KillClip
NoCollision
NoShoot

Main Table