Types???

Blitz3D Forums/Blitz3D Programming/Types???

Every time you type "new player", another player is added to the list. Unless you move it (you can change the order using the INSERT command), it will be last in the list.

To answer your original question, "how would I tell the computer to say delete the first one but not the second?" - the answer is simple:

Delete first player

But to delete the SECOND player and not the first, would be more like:

p.player=first player ;points to first player
p=after p ;now it points to the next type object
delete p ; zap!

So the commands you'll want to keep in mind for navigating the lists are:

FIRST
LAST
EACH
AFTER
BEFORE
INSERT

...and also NULL - indicating a pointer points at nothing, eg: If p=NULL then (do something)