different pointer same type

Blitz3D Forums/Blitz3D Programming/different pointer same type


I think Im starting to get it, you are printing the temp of a single fruit (otherwise it would get messy on screen) using a unique pointer.

How do you set which instance gets called by "specificfruit".

-------------



Almost - I am increasing ALL the fruits' ripeness by a random amount each loop.

SpecificFruit will have been set elsewhere, either by a larger For/Each loop with some sort of Field argument

i.e.

If SpecificFruit\Fruit$="Apple" ....


or by defining a Global Type to point here (as explained to me here)

You'll see my game has nothing to do with fruit or trees at all, I was just tryiong to find a simpler example!