Why'd you upload your code as a Word document?
For starters, ditch your entire loading method. You're making the user wait several unnecessary seconds with all those needless WAIT commands.
Use relative paths for loading media instead of absolute. (otherwise your game isn't going to work if you move it or for anyone else)
When you create your project file, the current folder it resides in is your root folder. So if your project is in a folder called
C:\Users\Dania\Desktop\Team Kryptic\ then you should just load your images like this:
load image "media\image.bmp", 1
if scancode()=0 then exit
This is going to exit almost immediately most likely because unless the user holds down a key constantly, it's always going to be 0.
Take a look at this code below. This is a good start for a typical program. I couldn't quite make it fit to your code exactly because frankly I have no clue what you're trying to do. I've been coding for about 15 years, so that might tell you something about your own code if I can't even figure out the structure of what it's suppose to do.
set display mode 800, 600, 32
set global collision on
REM DECLARE VARIABLES
MyTimer = 250
Gravity# = 1 : rem How powerful gravity is
MyPower = 20 : rem How strong the player can jump
MySpeed = 30 : rem How fast the player can run
MyScore = 0 : rem Starting score is 0
MyAcceleration# = 0.0 : rem Start without jumping or falling
REM load media
gosub loadImages
gosub loadSounds
gosub loadObjects
REM position/scale/rotate 3D models
gosub setupObjects
sync on
sync rate 60
REM Show some kind of one-time intro splash screen
load bitmap "C:\Users\Dania\Desktop\Team Kryptic\media\rsz_wolf_splash_screen.bmp"
center text 400,580, "Hit any key to continue"
sync
wait key
REM ***************************
REM * Main Game Loop *
REM ***************************
DO
cls
gosub playerControls
gosub handleObjects
sync
LOOP
REM ***************************
REM * Load images *
REM ***************************
loadImages:
mediaRoot$ = "media\"
Load image mediaRoot$ + "scratch_texture.bmp",1
Load image mediaRoot$ + "Wall_texture1.bmp",2
Load image mediaRoot$ + "Wall_texture2.bmp",3
Load image mediaRoot$ + "Wall_texture3.bmp",4
Load image mediaRoot$ + "Wall_texture4.bmp",5
Load image mediaRoot$ + "Grass4.bmp",6
load image mediaRoot$ + "bananat2.bmp",7
load image mediaRoot$ + "watermelont.bmp",8
load image mediaRoot$ + "mushroomt.bmp",9
load image mediaRoot$ + "poison.bmp",10
load image mediaRoot$ + "rainbow.bmp",11
load image mediaRoot$ + "portal.bmp",12
load image mediaRoot$ + "fence.bmp",13
load image mediaRoot$ + "death.bmp",14
load image mediaRoot$ + "hfloor.bmp",15
load image mediaRoot$ + "grass3.bmp",16
load image mediaRoot$ + "woodentexture.bmp",17
load image mediaRoot$ + "pantry.bmp",121
load image mediaRoot$ + "door.bmp",122
load image mediaRoot$ + "door2.bmp",123
load image mediaRoot$ + "sky.bmp",124
RETURN
REM ***************************
REM * Load sounds *
REM ***************************
loadSounds:
soundRoot$ = "sounds\"
load sound soundRoot$ + "gameover.wav",1
load sound soundRoot$ + "Mozart.wav",2
load sound soundRoot$ + "fruitcollect.wav",3
load sound soundRoot$ + "victory.wav",4
load sound soundRoot$ + "powerup.wav",5
load sound soundRoot$ + "jump.wav",6
load sound soundRoot$ + "super.wav",7
load sound soundRoot$ + "mushroom.wav",8
load sound soundRoot$ + "hell.wav",9
load sound soundRoot$ + "start.wav",10
RETURN
REM ***************************
REM * Load 3D models *
REM ***************************
loadObjects:
objectRoot$ = "media\"
load object objectRoot$ + "bunny.x",1
load object objectRoot$ + "fridge.x",101
load object objectRoot$ + "counter.x",102
load object objectRoot$ + "tree1.x",103
load object objectRoot$ + "table.x",104
load object objectRoot$ + "fence.x",105
load object objectRoot$ + "fence.x",106
load object objectRoot$ + "fence.x",107
load object objectRoot$ + "fence.x",108
load object objectRoot$ + "fence.x",109
load object objectRoot$ + "fence.x",110
load object objectRoot$ + "fence.x",111
load object objectRoot$ + "fence.x",112
load object objectRoot$ + "fence.x",113
load object objectRoot$ + "fence.x",114
load object objectRoot$ + "fence.x",115
load object objectRoot$ + "fence.x",116
load object objectRoot$ + "fence.x",117
load object objectRoot$ + "fence.x",118
load object objectRoot$ + "fence.x",119
load object objectRoot$ + "fence.x",120
load object objectRoot$ + "box.x",125
load object objectRoot$ + "box.x",126
load object objectRoot$ + "box.x",127
load object objectRoot$ + "multiplication.x",128
RETURN
REM ***************************
REM * Create your subroutines *
REM ***************************
setupObjects:
Rem Player Character
scale object 1,100,100,100
position object 1,0,20,0
rotate object 1,0,90,0
make object collision box 1,-25,-35,-25,25,35,25,0
rem fridge
scale object 101,200,200,200
position object 101, 1500,70,800
rotate object 101,0,450,0
rem counter
scale object 102,1000000,1000000,1000000
position object 102, 2150,-220,200
rotate object 102,0,180,0
rem tree
scale object 103,10000,10000,10000
position object 103, -500,50,-300
rem table
scale object 104,3000,3000,3000
position object 104,1000,-10,-500
rem fences
scale object 105,5000,5000,5000
position object 105,-1700,-50,900
scale object 106,5000,5000,5000
position object 106,-1550,-50,900
scale object 107,5000,5000,5000
position object 107,-1400,-50,900
scale object 108,5000,5000,5000
position object 108,-1250,-50,900
scale object 109,5000,5000,5000
position object 109,-1100,-50,900
scale object 110,5000,5000,5000
position object 110,-950,-50,900
scale object 111,5000,5000,5000
position object 111,-800,-50,900
scale object 112,5000,5000,5000
position object 112,-650,-50,900
scale object 113, 5000,5000,5000
position object 113,-500,-50,900
scale object 114,5000,5000,5000
position object 114,-350,-50,900
scale object 115,5000,5000,5000
position object 115,-200,-50,900
scale object 116,5000,5000,5000
position object 116,-50,-50,900
scale object 117,5000,5000,5000
position object 117,100,-50,900
scale object 118,5000,5000,5000
position object 118,250,-50,900
scale object 119,5000,5000,5000
position object 119,400,-50,900
scale object 120,5000,5000,5000
position object 120,550,-50,900
rem end fence
rem boxes
scale object 125,500,500,500
position object 125,650,-20,750
scale object 126,500,500,500
position object 126,550,40,750
scale object 127,500,500,500
position object 127,550,-20,750
rem end boxes
rem multiplication
scale object 128,2000,2000,2000
position object 128,650,10,750
REM =====================================
REM WALLS
REM =====================================
rem North Wall
make object box 2,4000,1050,10
rotate object 2,0,0,0
position object 2, 0,500,1005
texture object 2,2
rem East Wall
make object box 3,4000,1050,10
rotate object 3,0,90,0
position object 3, 2000,500,0
texture object 3,3
rem South Wall
make object box 4,4000,1050,10
rotate object 4,0,180,0
position object 4, 0,500,-1005
texture object 4,4
rem West Wall
make object box 5,2000,1050,10
rotate object 5,0,270,0
position object 5, -2000,500,0
texture object 5,4
rem front left side of house
make object box 66,800,1050,10
rotate object 66,0,270,0
texture object 66,16
position object 66,500,500,480
make object collision box 66,500,2000,10,510,2000,10,0
rem front right side of house
make object box 67,800,1050,10
rotate object 67,0,270,0
texture object 67,16
position object 67,500,500,-480
rem top portion of house
make object box 68,165,1050,10
rotate object 68, 0,270,0
texture object 68,16
position object 68, 500,700,0
rem first layer left of house
make object box 69,1500,1050,5
rotate object 69,0,180,0
position object 69,1250,500,880
texture object 69,11
rem first layer right of house
make object box 70,1500,1050,5
rotate object 70,0,180,0
position object 70,1250,500,-880
texture object 70,11
rem outer layer left of house
make object box 71,1500,1050,5
rotate object 71,0,180,0
position object 71,1250,500,883
texture object 71,16
rem outer layer left of house
make object box 72,1500,1050,5
rotate object 72,0,180,0
position object 72,1250,500,-883
texture object 72,16
rem pantry
make object box 73,140,250,5
rotate object 73,0,270,0
position object 73, 1990,50,-350
texture object 73,121
rem door outer layer
make object box 74,170,250,5
rotate object 74,0,270,0
position object 74,500,50,0
texture object 74,123
rem door inner layer
make object box 75,170,250,5
rotate object 75,0,270,0
position object 75,495,50,0
texture object 75,122
rem ceiling
make object box 76,5000,5000,10
rotate object 76,90,0,0
position object 76,0,1050,0
texture object 76,124
rem Floor
make object box 6,4000,950,2000 : position object 6,0,-500,0 : color object 6,rgb(0,255,0)
make object collision box 6,-2000,-450,-1000,2000,450,1000,0
texture object 6,6 : scale object texture 6,1,1
rem Steps that are not in use
for t = 0 to 8
make object box t+7, 50, 50, 50
position object t+7, 0, -5000, -5000
texture object t+7, 6
make object collision box t+7,-30,-30,-30,30,30,30,0
next t
automatic camera collision 0,50,0
automatic object collision 1,50,0
RETURN
REM ***************************
REM * Add your functions here *
REM ***************************
function stuff()
endfunction
REM ***************************
REM * Add your functions here *
REM ***************************
function junk()
endfunction
Judging by the amount of media you're loading, you're attempting to make a fairly decent size project. I would strongly encourage you put this project on hold and start with a far more simple game like pong. Yea it's not as exciting, but you need a firm grasp on code structure and organization before tackling anything larger.
"You're all wrong. You're all idiots." ~Fluffy Rabbit