i was hoping no one would notice, i messed up when typing it in , I meant to compress the camera lines, i just forgot
sync on ; hidemouse ; sync rate 30
make matrix 1,100,150,10,15
load image "floor1.bmp",1
prepare matrix texture 1,1,2,1
update matrix 1
make object cube 6,10
make object sphere 2,20
h2=300
h1=300
position object 6,60,5,30 ; position object 2,40,7,100
position camera 100,35,-10 ; point camera 50,25,50
do
text 10,20,"Press 1 to attack(30 dmg)" ; text 10,40,"Press 2 to heal (70 HP)" ; text 300,20,"HP: "+str$(h1)+"/300" ; text 300,40,"Enemy HP: "+str$(h2)+"/300"
if inkey$()="1" then position object 6,45,5,90; wait 150 ;h2=h2-30;position object 6,60,5,30 ; wait 150 ; position object 2,55,7,40;wait 150;h1=h1-50 ;position object 2,40,7,100
if inkey$()="2" then h1=h1+70;position object 6,60,10,30 ; color object 6,RGB(0,180,0);wait 300 ; color object 6,RGB(140,12,70) ;position object 6,60,5,30 ;wait 150 ; position object 2,55,7,40;wait 150;h1=h1-50 ;position object 2,40,7,100
if h1=<1 then text 100,100,"GAME OVER" ; suspend for key ; end
if h2=<1 then text 100,100,"YOU WIN" ; suspend for key ;end
sync
loop
thanks for the replies, But does anyone know how i could make YOU WIN or GAMEOVER stay on the screen untill someone pesses a key? and how would i make it so i can't heal any more then max hp?
A one that is not cold is scarcely a one at all