so I loaded an animation into my game and I tried to play it if it collided with something but it says the animation doesn't exist heres the code
REM *****************************************
RemStart
*** TITLE - Galactic Math
*** VERSION - 1.3.0 LAST UPDATED - 1.30.2014
*** DEVELOPER - Tristan Green & John Wu
*** COPYRIGHT - Nothing Yet
*** DATE CREATED - 11.22.2013
***
RemEnd
REM *** START SYSTEM SETUP SECTION
hide mouse
autocam off
REM *** STOP SYSTEM SETUP SECTION
REM *****************************************
REM *****************************************
REM *** START INTRO SECTION
REM *** INTRO SECTION HEADER
REM DECLARE VARIABLES
REM SCREEN DISPLAY
cls 0
load bitmap "E:\Edutainment Game\images\Galactic-Math.bmp"
ink rgb(255,255,255),0 : set text font "arial" : set text size 14 : set text to bold : set text transparent
center text 320,420,"Developed by Tristan Green and John Wu"
center text 320,434,"Copyright © Nothing 2014"
REM LOAD MUSIC
REM SOUND EFFECTS
REM SPECIAL EFFECTS
REM REFRESH SCREEN
sync
REM *** INTRO SECTION LOOP
do
REM SCREEN DISPLAY
REM CONTROL INPUT
if Keystate(scancode())=1 then gosub MainSection
REM REFRESH SCREEN
sync
loop
REM *** END INTRO SECTION
REM *****************************************
REM *****************************************
REM *** START OPTIONS SECTION
REM *** OPTIONS SECTION HEADER
OptionsSection:
REM DECLARE VARIABLES
REM SCREEN DISPLAY
REM SOUND EFFECTS
REM SPECIAL EFFECTS
REM REFRESH SCREEN
REM *** OPTIONS SECTION LOOP
REM CONTROL INPUT
REM REFRESH SCREEN
REM *** END OPTIONS SECTION
REM *****************************************
REM *****************************************
REM *** START MAIN SECTION
REM *** MAIN SECTION HEADER
MainSection:
REM DECLARE VARIABLES
MyScore = 0 : rem Starting score is 0
MyAcceleration# = 0.0 : rem Start without jumping or falling
REM SCREEN DISPLAY
cls 0 : backdrop on
REM LOAD IMAGES
load image "E:\Edutainment Game\images/moon_floor.png",2
load image "E:\Edutainment Game\images/starfield-6.jpg",5
load image "E:\Edutainment Game\images/16032727.jpg",1
load image "E:\Edutainment Game\images/character.bmp",10
load image "E:\Edutainment Game\images/coin.bmp",30
REM OBJECT CREATION
REM FLOOR
Make object box 2, 500,100,5000
position object 2, -5,-10,-5
color object 2,rgb(155,155,155)
texture object 2,2
scale object texture 2,1,10
REM PLAYER
make object sphere 1,50,20,50
color object 1,rgb(255,255,0)
position object 1,15,100,15
texture object 1,1
REM NOBS
make object sphere 10, 100,100,100
position object 10, 15,90,200
texture object 10,10
make object plain 15, 500,500,500
position object 15, 25,90,300
texture object 15,10
REM COINS
make object box 30,35,30,35
position object 30, 60,100,60
texture object 30,30
REM LOAD MODELS
REM SET COLLISIONS
REM SET CAMERA
REM SOUND EFFECTS
REM SPECIAL EFFECTS
REM REFRESH SCREEN
sync
REM *** MAIN SECTION LOOP
position camera -200,350,-200
point camera 15,5,15
yrotate camera -90
color backdrop rgb (100,200,255)
texture backdrop 5
do
yrotate object 30, object angle y (30)+0.2
yrotate object 1, rotation# REM rotate the object
set camera to follow object position x(1), object position y(1), object position z(1), object angle y(1), 190, 290, 100, 0
if upkey() then move object 1,1
if downkey() then move object 1,-1
if rightkey() then rotation#=rotation#+.25 REM control the rotation
if leftkey() then rotation#=rotation#-.25 REM control the rotation
if object collision(1,2)=0 then inc FallSpeed#,.015 else FallSpeed#=0
if spacekey() then move object up 1,2
position object 1,object position x(1),object position y(1)-FallSpeed#,object position z(1)
scroll object texture 1,0,0.0002
scroll object texture 10,0,0.0002
if object position y(1)<-100 then position object 1, 15,100,15
if object collision (1,10) then center text 320,420, "12x12"
if object collision (1,10) then center text 320,440, "[A]144 [B]24 [C]140"
if object collision (1,10) then
if Inkey$()="a" and object collision (1,10)
ghost object on 10, 1
position object 10, 15,900,200
endif
if Inkey$()="b" and object collision (1,10)
ghost object off 10
endif
if Inkey$()="c" and object collision (1,10)
ghost object off 10
endif
if object collision (1,15) then play animation 1
if object collision (1,30) then MyScore = MyScore + 100
if object collision (1,30) then position object 30, 10000,2000,1000
center text 40,10, "Score:"+str$(MyScore)
loop
load animation "Molotov01a.mpg", 1
make object plain 1, 900, 900
texture object 1, 1
loop animation 1
do
set object to camera orientation 1
LOOP
do
point object 1, camera position x( 0 ), camera position y ( 0 ), camera position z ( 0 )
LOOP
REM *** STOP MAIN SECTION
REM *****************************************
REM *****************************************
REM *** START END SECTION
REM *** END SECTION HEADER
EndSection:
REM DECLARE VARIABLES
REM SCREEN DISPLAY
cls 0
center text 320,240,"LOL YOU FELL LOSER!!! Play Again [Y/N]?"
REM SOUND EFFECTS
REM SPECIAL EFFECTS
REM REFRESH SCREEN
sync
REM *** END SECTION LOOP
do
if scancode()=0 then exit
loop
do
REM CONTROL INPUT
if Inkey$()="y"
gosub OptionsSection
endif
if Inkey$()="n"
cls : end
endif
REM REFRESH SCREEN
sync
loop
end
REM *** STOP END SECTION
REM *****************************************
Hasty