help needed with basic type

Blitz3D Forums/Blitz3D Beginners Area/help needed with basic type

anyone know why the below gives me a 'variable must be type' error? ive tried 'global man_walk' and passing the type to the function ie move_man(man_walk) but that doesnt work, just throws up errors
thanks

Global gfx_manwalk=LoadAnimImage("gfx\gfx_manwalk.bmp" ,80,80,0,12)
Global gfx_background=LoadImage("gfx\gfx_backdrop.bmp")
MaskImage gfx_manwalk,255,0,255
;#End Region

;==========================================================================================
;create types
Type manwalk
	Field x=80
	Field y=160
	Field frame=6
	Field id=1	
End Type

;==========================================================================================
;create objects from types;
man_walk.manwalk=New manwalk

;==========================================================================================
;main loop

   While Not KeyHit(1)

        draw_objects
        move_man
		Gosub debug
		Delay(100)
 
   Wend

   End


;==========================================================================================
;functions
Function move_man()
	
			
		If KeyDown(203) Then man_walk\frame=man_walk\frame-1:man_walk\x=man_walk\x-8
		If KeyDown(205) Then man_walk\frame=man_walk\frame+1:man_walk\x=man_walk\x+8

   		If man_walk\frame=12 Then man_walk\frame=man_walk\frame-4
		If man_walk\frame=12 Then man_walk\frame=man_walk\frame+4
			
End Function

Function draw_objects()
		
		Cls
   		DrawImage gfx_background,0,0
        DrawImage gfx_manwalk,man_walk\x,man_walk\y,man_walk\frame   ;Draw our image
        
        
End Function

;debug
;#Region debug
.debug

Text(6,360,"man_x:"+man_walk\x+" man_y:"+man_walk\y+" man_walk:"+man_walk\frame)
;
Flip
Return
;#End Region


What line in the code generates the error?

s'okay, fixed it now.
need to declare 'global man_walk.manwalk=new manwalk'