Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / ARRRYs HELP !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Author
Message
Dr OcCuLt
22
Years of Service
User Offline
Joined: 27th Nov 2002
Location: a Dark Deep Dark pit, it dark in here
Posted: 14th Jan 2003 16:02
can eney one help i trying to make array for missiles the problem is that i uesing a loop to move missiles and tell if the missils hits sum thing, if it hit sum thing it is delete it from the array it work sum time but then it carsh when you fire more missiles

FUNCTION MISS_NEW(MAKE as Integer,X as Float,Y as Float,Z as Float,cx as Float,cy as Float )

ARRAY INSERT AT BOTTOM MISS(0)
MISSNUM=ARRAY COUNT(MISS(0))

MISS(MISSNUM).TAG=NEW_OBJ()

MAKE OBJECT CONE MISS(MISSNUM).TAG,3
COLOR OBJECT MISS(MISSNUM).TAG,RGB(255,0,0)

MISS(MISSNUM).DAMGE=100
MISS(MISSNUM).TRACTING=0
MISS(MISSNUM).EXPLOSION=1
MISS(MISSNUM).RAGEN=200

MISS(MISSNUM).DV=20

MISS(MISSNUM).X=X
MISS(MISSNUM).Y=Y
MISS(MISSNUM).Z=Z
MISS(MISSNUM).CX=CX
MISS(MISSNUM).CY=CY

MISS_MOVE(MISSNUM)

ENDFUNCTION

FUNCTION MISS_KILL(i as Integer,FLAG as Integer )

IF FLAG=1
REM temp
ENDIF

ARRAY DELETE ELEMENT MISS(0),I
MISSNUM=MISSNUM-1

IF MISSNUM0 THEN MISS_KILL(I,1):EXITFUNCTION
IF MISS(I).RAGEN
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 14th Jan 2003 18:06
Yes, there is a problem with the UAS, which is why I wrote my LinkList plug-in, which is availiable from my web site.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!

Login to post a reply

Server time is: 2025-05-17 00:04:03
Your offset time is: 2025-05-17 00:04:03