PDA

View Full Version : Continuation of L's Gohma Script



Fire Wizzrobe
12-03-2006, 06:18 PM
You know.. the boss at the end of Revolution dungeon.

Can anyone show me an example of what the script (#13) would like if he had two attacks, one at 70 tics, and the other at 205.

Also, how would it be possibe to spawn 6 outward-flying combos around him too?

Thanks in advance.

Fire Wizzrobe
12-07-2006, 08:33 PM
Anyone? Here's the code for those of you who don't want to dig it out...


SETV a1,5
COUNT SETV d1,70; projectile countdown: fire at 0
LOOP SUBV d1,1
WAITFRAME
COMPAREV x,180; reached right edge?
GOTOLESS MORE
SETV xd,-1; reverse speed
MORE COMPAREV x,40; reached left edge?
GOTOMORE PROJ
SETV xd,1; reverse speed
PROJ COMPAREV data,0
GOTOTRUE 19
COMPAREV d1,0; now we handle the projectile
GOTOMORE LOOP
SETA1 x,x
SETA1 y,y; place the projectile
SETV d0,21
SETA1 data,d0; set its sprite
GOTO COUNT
QUIT

_L_
12-07-2006, 08:57 PM
Can't talk. Dialogue editor.

(Although, obvious improvements would be sound effects, damage flashing, more than 1 hit point, and randomised speed reversals. See my Red Aquamentus (http://www.greyfire.org/~l/Miniboss.zip) for hints)