Room Type

Blitz3D Forums/Blitz3D Beginners Area/Room Type

Hotshot2005(Posted 2008) [#1]
Type Room_Grids
     Field Room[100] ; 100 Different Room
     Field X,Y       ; X, Y Positions
     Field Room_Exit ; Room if person Exit
End Type

Newr.Room_Grids = New Room_Grids

Room_Grids\Room[1]=LoadImage("GFX\Room_1.PNG")


For dim arrays and it work fine but TYPE with arrays is better but why doesnt it work?


Ross C(Posted 2008) [#2]
Room_Grids\Room[1]=LoadImage("GFX\Room_1.PNG")


Should be:

[code]
Newr\Room[1]=LoadImage("GFX\Room_1.PNG")
[\code]


Hotshot2005(Posted 2008) [#3]
Dohhhh me... thank you ross c