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.

see what you get for this:
Type TGameObject
	Field x,y,xv,yv
End Type
Cls
Type TBullet Extends TGameObject
	Field x:Int
	Field y:Int
	Function playershoot(x:Int,y:Int)
		TBullet.x = sx
		TBullet.y = sy
	EndFunction
	Function update()
		TBullet.x = +1
	EndFunction
EndType