First off, make your monster (except for the missile part).
Before you make the states though, you will have to add this to your monster initiation part.
Code: Select all
var int user_angle;
Code: Select all
//SPRI A = Your Sprite
//DEL = Delay of projectile firing
//SPHEIGHT = Height of projectile spawning
//DIVIDE = Chooses how many projectiles you want spawned in the spiral. (360/DIVIDE amount of projectiles)
//PROJ = Your Projectile
Missile:
SPRI A 0 a_setuservar(user_angle,0)
//add something like an animation on this line if you want
Missile2:
SPRI A DEL a_custommissile("PROJ",SPHEIGHT,0,user_angle,cmf_aimdirection,0)
SPRI A 0 a_setuservar(user_angle,user_angle+DIVIDE)
SPRI A 0 a_jumpif(user_angle <3 60,"Missile2")
//add another animation if you want
goto See