I need to pass an array to a function but can't quite figure out how to do it. The below code won't work, I get an error down by the function declaration saying it expects a ')':
[CODE]
Dim Walk(6)
For x = 0 To 5
Walk(x) = LoadImage("walk_"+x+".bmp")
Next
If something..
Render_This(Walk(6),64,64)
EndIf
Function Render_This(Image(6),X#,Y#)
; code..
[/CODE]
Any code gurus around to show me what's what? :)
[CODE]
Dim Walk(6)
For x = 0 To 5
Walk(x) = LoadImage("walk_"+x+".bmp")
Next
If something..
Render_This(Walk(6),64,64)
EndIf
Function Render_This(Image(6),X#,Y#)
; code..
[/CODE]
Any code gurus around to show me what's what? :)