About types.... to...

Blitz3D Forums/Blitz3D Beginners Area/About types.... to...

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.

Um I would do this, this looks better, I think.
p.player=new player

        If KeyDown(200) p\y = p\y - 4;Up
	If KeyDown(208) p\y = p\y + 4;down
	If KeyDown(203) p\x = p\x - 4;Left	
	If KeyDown(205) p\x = p\x + 4;Right
        DrawImage image, p\x, p\y

type player
field x
field y
field Jumphieght
field visible
end type


Hrrm what type of game program are you working on? 2d works, but to be honest I think 3d programming is much easier then 2d. The only part thats harder in 3d, is to make the 3d models. But use Milkshape. its the better then anything I've seen for under 100 bucks(milkshape is 30 btw still i think).