Can anyone explain this?

BlitzMax Forums/BlitzMax Programming/Can anyone explain this?

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 would probably do it this way at the beginning of your code. You are tyring to add to the GameObjectList before you are creating it. Instead of adding your object to the list in your create function try this:


Local GameObjectList:TList = CreateList()
Local Player:TSpaceShip = TSpaceShip.CreateShip(0,500)
ListAddLast GameObjectList,TSpaceShip

Actually if you create your list first before you create your ship it shoud work the way you have it.