rem ---Overhead demo by Joshua Coleman---
rem -------------------------------------
rem -------------------
rem Hide mouse
hide mouse
rem Load matrix, house, etc.
make matrix 1,2000.0,2000.0,12,12
load bitmap "grass.bmp",1
get image 1,0,0,256,256
delete bitmap 1
prepare matrix texture 1,1,1,1
load object "House1.x",2
position object 2,1000.0,0.0,1000.0
rem Tree placement
DIM treex#(13)
treex#(3)=1500.0
treex#(4)=800.0
treex#(5)=900.0
treex#(6)=1250.0
treex#(7)=1400.0
treex#(8)=600.0
treex#(9)=400.0
treex#(10)=1800.0
treex#(11)=700.0
treex#(12)=700.0
DIM treez#(13)
treez#(3)=1500.0
treez#(4)=900.0
treez#(5)=1200.0
treez#(6)=1400.0
treez#(7)=900.0
treez#(8)=700.0
treez#(9)=1000.0
treez#(10)=550.0
treez#(11)=800.0
treez#(12)=1850.0
for t=3 to 13
load object "tree1.x",t
position object t,treex#(t),0,treez#(t)
next t
rem Position camera
xpos#=1000
zpos#=1000
rem Activate sync
sync on
rem Begin loop
do
rem Camera position
position camera xpos#,400,zpos#
rem Control camera with arrow keys
if upkey()=1 then zpos#=zpos#+10.0
if downkey()=1 then zpos#=zpos#-10.0
if leftkey()=1 then xpos#=xpos#-10.0
if rightkey()=1 then xpos#=xpos#+10.0
rem Update camera
xrotate camera 55.0
yrotate camera 0.0
zrotate camera 0.0
rem Syncronise
sync
rem End loop
loop
Okay, until I get through with the blocking thing, I'm working on a different problem with this code. I have programmed this to load 10 trees and place them at coordinates from an array. Problem is, one of them always loads at the bottom right corner of the matrix, regardless of what I do to the coordinates I can't find the problematic tree. It isn't so much of a bother except it is hanging over the edge of the matrix (which when I get help with the blocking thing the player won't see anyway.)
Also, I would like to know... is there a way to make a loading screen before the player actually enters the world? As it is right now, for a while the player is stuck watching all the trees being loaded into place, and I'd rather have something that says "Loading" or something to that effect covering the screen until it is done.
P.S. Media folder is attached