types and functions

Blitz3D Forums/Blitz3D Beginners Area/types and functions

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I started with for next

but now, I'm tempted to use arrays as I've reached the sprite to sprite collision routine I have to write, so I find myself with a problem

using the for next loop method, I can't compare blue.car\xpos to red.car\xpos (I just have loop.car\xpos)

if I switched to an array I could easily do this:

if car(1)\xpos = car(2)\xpos

so I think I'll switch