About types.... to...

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

Well example my type is:
type Player_typ
field X
field Y
field JumpHeight
field Visible
end type

I wonder how to get a value and put a value in thoses field???

;need to add something like to set Player_typ  Visible field to false, and do like this
;if player_typ's field Visible is true then 


	If KeyDown(200) ; up
		y=y-4
	EndIf	
	If KeyDown(208) ; down
		y=y+4
	EndIf	
	If KeyDown(203) ; left
		x=x-4
	EndIf	
	If KeyDown(205) ; right
		x=x+4
	EndIf	
	
	DrawImage image,x,y
until Visible

...

What would be the correct way to do this..
add value to a field and retrieve the value from that type...???????