this code is incomplete but when i test it i get an error saying object already exisits at line 15sub loadmedia
rem steup objects
rem control game
gosub control_player
loadmedia:
rem load all media
load object "models\H-USA-Idle.x",1
append object "models\H-USA-Move.x",1,total object frames(1)+1
load object "models\am.x",8
load object "models\H-USA-Attack1.x",3
load object "models\H-Alien Mutant-Move.x",4
load object "models\H-Alien Mutant-Attack1.x",5
load object "models\H-Bones-Move.x",6
load object "models\H-Bones-Attack1.x",7
load music "sounds\turok2gb_building.mid",1
load music "sounds\d2map10.mid",2
load music "sounds\d2map28.mid",3
load sound "sounds\Queen exhale.wav",1
load sound "sounds\fire loop.wav",2
load sound "sounds\Gun 3.wav",3
load sound "sounds\cave creature.wav",4
load image "images\gravel1.bmp",1
load image "images\lava1.bmp",2
load image "images\grass3.bmp",3
return
control_player:
rem controls main character
if upkey()=1 then play object 1,26,26+50
if downkey()=1 then play object 1,26,26+50
if leftkey()=1 then play object 1,26,26+50
return
sj