I put here my battle code if somebody can help me i am really stuck here.. I not even know anymore what those my make values means anymore
bossbattles:
#include "menu.dba"
#include "gameover.dba"
#include "joo.dba"
`bosses
do
if sepi=1
sepi=sepi-sepi
hide object 301
show object 303
play object 303
loop object 303
load music "Music/One Winged Angel.mp3",6
play music 6
loop music 6
enemylife#=1000
fiend1#=303
obj#=objground+5
fiendpos#=30
fiend2#=fiend1#
fiendhit#=50
fiendplace#=240
gosub battlestart
endif
if Fishkiss=1
Fishkiss=Fishkiss-Fishkiss
play music 1
loop music 1
enemylife#=200
hide object 301
show object 304
play object 304
loop object 304
fiend1#=304
obj#=objground#+30
fiendpos#=30
fiend2#=fiend1#
fiendhit#=25
fiendplace#=240
place#=place#+30
place2#=place2#+30
gosub battlestart
endif
loop
`end of bosses
battlestart:
fog on
sync
sync rate 10
hide object 1
`Chars
char#=302
if char2=1 then char2#=302 else char2#=char#
pos#=72
if char2=1 then pos2#=82 else pos2#=pos#
obj#=objground#+5
if char2=1 then obj2#=objground#+5 else obj2#=obj#
place#=209
if char2=1 then place2#=209 else place2#=place#
`End of chars
show object 302
play object 302
loop object 302
play object 300
loop object 300
playerlife#=350
pmaxl#=350
position camera 10,33,239
yrotate camera 90
potion#=5
`if potion#=potion#=0 then
` ink colors
white=RGB(255,255,255)
blue=RGB(0,128,255)
black=RGB(0,0,0)
`your attack
repeat
` timer
tim#=tim#+1
sync
sync rate 10
load image "Sprites/03.jpg",2
position object 303,70,objground#+5,260
if tim#>=50 then gosub fiendattack
if tim#<100 then gosub box
position object 303,70,objground#+5,270
until playerlife#<=0 OR enemylife#<=0
` if you win or die
`now, for everything that goes over the menu, you
`can sprite here
`moth
fiendattack:
sync
sync rate 10
` makemoth appear to fly - moth attack pattern
position object fiend1#,fiendpos#,obj1#,fiendplace#
wait 0
position object fiend2#,fiend2pos#,obj2#,fiend2place#
wait 200
playerlife#=playerlife#-fiendhit#
position object fiend1# and fiend2#,fiendpos# and fiend2pos#,obj1# and obj2#,place# and place2#
tim#=tim#-tim#
move#=move#-1
return
`player attack
playerattack:
sync
sync rate 10
position object char#,pos#,obj1#,place#
position object char2#,pos2#,obj2#,place2#
enemylife#=enemylife#-50
position object char# and char2#,pos# and pos2#,obj# and obj2#,fiendplace#-15
tim#=tim#-tim#
move#=Move#-1
return
box:
` creating the attack box structure
selectedItem=1
do
sync rate 10
if playerlife#<=0 then gosub endgame
if enemylife#<=0 then gosub playing
if move#=1 then gosub fiendattack
if move#=2 then gosub playerattack
` Status box
load image "Sprites/02.jpg",1
paste image 1,0,499
text 400,520,"HP "+STR$(playerlife#)
text 457,520,"/"+STR$(pmaxl#)
text 330,520,name$
paste image 2,216,408
if enemylife#=0 then end
`print menu items
if selectedItem=1 then ink blue,0 else ink white,0
text 230,420,"Attack"
if selectedItem=2 then ink blue,0 else ink white,0
text 230,470,"Magic"
if selectedItem=3 then ink blue,0 else ink white,0
text 230,520,"Items"
if selectedItem=4 then ink blue,0 else ink white,0
text 230,570,"Escape"
`select menu items
if upkey()=1 and hold=0 then dec selectedItem : hold=1
if downkey()=1 and hold=0 then inc selectedItem : hold=1
if upkey()=0 and downkey()=0 then hold=0
if selectedItem>4 then selectedItem=1
if selectedItem<1 then selectedITem=4
` to select items
if returnkey()=1
`attack opponent
if selectedItem=1 then : sync : move#=1
if selectedItem=1 then : sync : move#=2
sync : sync
`clear up after myself
sync : sync
`clear up after myself
`quit the game
if selectedItem=4
gosub playing
endif
endif
sync
loop
return