From 88d280bb46d7557a06d2ab0342e42896549c7f9a Mon Sep 17 00:00:00 2001 From: Ian C Date: Sun, 4 Jun 2006 00:20:39 +0000 Subject: Added smoke trail for missiles --- gametypes.bmx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gametypes.bmx') diff --git a/gametypes.bmx b/gametypes.bmx index a89c366..7956568 100644 --- a/gametypes.bmx +++ b/gametypes.bmx @@ -265,6 +265,7 @@ Type Missile Field turn:Double Field speed:Double Field accurate:Int + Field smoke:Int Method New() Select Rand(1,4) @@ -291,6 +292,7 @@ Type Missile If Rand(100)>50 accurate=True EndIf + smoke=0 End Method Method Update(tx:Double,ty:Double) @@ -331,6 +333,13 @@ Type Missile DrawImage(GFX.missile,x,y) CollideImage(GFX.missile,x,y,0,0,MISSILE_LAYER,Self) + smoke:+1 + + If smoke=10 + Particles.AddScaledImage(GFX.exhaust,x,y,0.1) + smoke=0 + EndIf + If onscreen x=x Mod 800 y=y Mod 600 -- cgit v1.2.3