I dont know if youve gone through this tutorial but I have but when I have placed the objects (walls etc.) you color the objects. The code is correct as far as I can see but when I execute the program all the objects are white. I dont know if this has anything to do with the problem but I had to add a (#) after the variables in the for next loops. I have Dbpro if this also helps.
Rem - Setup Screen
hide mouse
set Display mode 1024,768,32
Sync on
Autocam on
Cls
Rem - Load the first level
_Load_Level()
Do
Position Camera 87, 150, 87
Point Camera 87,0,87
Sync
Loop
Rem - Setup loading of levels
Function _Load_Level()
MazePill# = 200
MazePower# = 500
Make matrix 1, 128, 160, 16, 20
Position matrix 1, 24,0,0
For Mazey# = 1 to 20
For Mazex# = 1 to 16
Read Maze#
If Maze# = 1
Inc MazeWall#
Make Object Cube MazeWall#,8
Color Object MazeWall#,rgb(0,0,255)
Position Object MazeWall#, (Mazex# * 8) + 20, GroundHeight, (Mazey# * 8) - 4
Endif
If Maze# = 2
Inc MazeWall#
Make object Cube MazeWall#,8
Color object MazeWall#, RGB(255,0,255)
Position object MazeWall#,(Mazex# * 8) + 20, GroundHeight, (Mazey# * 8) - 4
Endif
If Maze# = 3
Inc MazePill#
Inc Pills#
Make object sphere MazePill#,2
Color object MazePill#, RGB(255,255,0)
Position Object MazePill#, (Mazex# * 8) + 20, GroundHeight, (Mazey# * 8) - 4
Endif
If Maze# = 4
Inc MazePower#
Make Object Sphere MazePower#,4
Color Object MazePower#, RGB(255,255,0)
Position Object MazePower#, (Mazex# * 8) + 20, GroundHeight, (Mazey# * 8) - 4
Endif
Next Mazex#
Next Mazey#
Color Object MazePower#, RGB(255,255,0)
EndFunction
Rem - Level one
Data 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
Data 1,4,3,3,3,3,3,3,3,3,3,3,3,3,4,1
Data 1,3,1,1,1,1,1,1,1,1,1,1,1,1,3,1
Data 1,3,1,4,3,3,3,3,3,3,3,3,4,1,3,1
Data 1,3,1,3,1,1,1,1,1,1,1,1,3,1,3,1
Data 1,3,1,3,3,3,3,3,3,3,3,3,3,1,3,1
Data 1,3,1,3,1,1,1,1,1,1,1,1,3,1,3,1
Data 1,3,1,3,3,3,3,3,3,3,3,3,3,1,3,1
Data 1,3,1,3,1,1,1,1,1,1,1,1,3,1,3,1
Data 1,4,3,3,3,3,3,3,3,3,3,3,3,3,4,1
Data 1,3,1,3,1,1,1,1,1,1,1,1,3,1,3,1
Data 1,3,1,3,3,3,3,3,3,3,3,3,3,1,3,1
Data 1,3,1,3,1,0,0,0,0,0,0,1,3,1,3,1
Data 1,3,1,3,1,1,0,2,2,0,1,1,3,1,3,1
Data 1,3,1,3,1,1,0,0,0,0,1,1,3,1,3,1
Data 1,3,1,3,1,1,1,1,1,1,1,1,3,1,3,1
Data 1,3,1,4,3,3,3,3,3,3,3,3,4,1,3,1
Data 1,3,1,1,1,1,1,1,1,1,1,1,1,1,3,1
Data 1,4,3,3,3,3,3,3,3,3,3,3,3,3,4,1
Data 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
Thanks in advance for any help you may give me
Daniel
*For every problem you come across you gain something from correcting it, I hope.