Game Development Community

Removing an item from an Array?

by Chris Dillman · in Torque Game Builder · 12/02/2005 (1:59 am) · 1 replies

Removing an item from an Array?

Say I have an array with 3 items.
Is there it possible to delte the item at spot 2
and have item 3 slide down?

Is there a way to ask an array how many items are in it?

It maybe be that arrays in T are just not arrays at all.
At least from reading the scipt docs I get that idea.

I also see people patching T with a more advanced array class.
Now Im looking to avoid that if possible for now.

#1
12/02/2005 (2:57 am)
Have you taken a look at this thread? Or, you can always implement the array object.

I personally use the array object, but I don't use many of its advanced features and should move away from it (keep things simpler for T2D upgrades).