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

SetGroup

       SETGROUP                GroupNumber

An extension to the Group command that allows more flexibility during the spawning of sprites, together with ResetGroup.


Example: the nureyev's attack.

Lets say you wanted to bring 2 groups of baddies on, one at the time, and one at the bottom - but this time, have them on at exactly the same time! SetGroup lets you do just that:

;-----------------------------------------------------------------------------
; Spawn a group of 4 baddies.
;-----------------------------------------------------------------------------
        RESETGROUP 0,4
        RESETGROUP 1,4
        PFOR 4
                SETGROUP 0
                START Simple_RL, Baddie1, 340, 60, KILLCLIP|GROUP
                SETGROUP 1
                START Simple_RL, Baddie2, 340, 150, KILLCLIP|GROUP
                PAUSE 10
        PNEXT

See also:
MasterPath
ResetGroup
Group

Main Table