types

BlitzMax Forums/BlitzMax Beginners Area/types

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.

never mind, still doesnt work!
new code:
ype TGameObject
	Field x,y,xv,yv
End Type

Type TBullet' Extends TGameObject
	Field x:Int
	Field y:Int
	Function playershoot(x:Int,y:Int)
	Local Bullet:TBullet = New TBullet
		TBullet.x = sx
		TBullet.y = sy
	EndFunction
	Function update()
		TBullet.x = +1
	EndFunction
EndType