Greetings:
Have a small annoying problem- Backdrop On
This command is not allowing TEXT,INPUT or PRINT to work even with Sync.
Am i not doing a procedure right?
I am including a sniplet sample of what I am trying to do
hide mouse
sync on : sync rate 0 : color backdrop rgb(0,128,0)
set text font "arial" : set text size 16
set text to bold : set text opaque
print "LOADING ... Please Wait":sync
backdrop off
color backdrop backcolor
cls
dim elf(22)
dim hero(22)
dim wiz(22)
dim super(22)
dim Lighting(22)
dim fire(22)
do
sync
text 0,0,line1$
text 0,30,line2$
text 0,60,line3$
text 0,90,line4$
text 0,120,line5$
text 0,150,line6$
sync
set cursor 0,200
line1$=" "
line2$=" "
line3$=" "
line4$=" "
line5$=" "
line6$=" "
input "e,h,s,w",char$
cls
s=rnd(21)+1
flag=1
for i=1 to 22
k=rnd(11)+1
elf(i)=k
k=rnd(11)+1
hero(i)=k
k=rnd(11)+1
super(i)=k
k=rnd(11)+1
wiz(i)=k
k=rnd(11)+1
lighting(i)=k
k=rnd(11)+1
fire(i)=k
next i
choice$=""
gosub battle
if choice$="T" or choice$="t" then goto nofight
line6$="Monster Hit Points="+str$(TotalHP)
gosub attack
nofight:
loop
`==============================
` player rolls dice to attack
`==============================
battle:
if flag=0 then return
IF MOUSECLICK()=1 then return
dice1=rnd(10)+2
line1$="Player roll Dice of "+str$(dice1)
` determine the character; if wizard, will he use fire or lighting or fight.
if char$="e" or char$="E"
TotalHP=elf(s)
else
if char$="h" or char$="H"
TotalHP=hero(s)
else
if char$="s" or char$="S"
TotalHP=super(s)
else
if choice$="B" or choice$="b"
TotalHP=wiz(s)
endif
if choice$="L" or choice$="l"
TotalHP=Lighting(s)
else
TotalHP=fire(s)
endif:endif
endif:endif
return
attack:
if dice1 >= TotalHP
line3$="You have attacked the monster and defeated him!"
return
else
if dice1 < TotalHP
line3$="You have attacked the monster and failed!"
gosub monster_attack
endif
endif
return
monster_attack:
dice=rnd(10)+2
line4$="Monster roll Dice of "+str$(dice)
if dice=2
line5$= "Adventurer Killed! Drop ALL Treasures. Return to START"
else
if dice = 3
line5$= "Wounded! Drop ALL Treasures. Return to ladder on this Level"
else
if dice = 4
line5$= "Retreat to somehere! Drop one Treasure"
else
if dice = 5
line5$= "Retreat to somehere! Drop one Treasure"
else
if dice=6
line5$= "Retreat and Drop one Treasure"
else
if dice=7
line5$= "Monster attacks and misses. No Effect"
else
if dice = 8
line5$= "Retreat to somehere! Drop one Treasure"
else
if dice = 9 or dice = 10
line5$= "Retreat and Drop one Treasure"
else
if dice=11
line5$= "Monster attacks and misses. No Effect"
else
if dice = 12
line5$= "Wounded! Drop ALL Treasures. Return to ladder on this Level"
else
endif:endif:endif:endif:endif
endif:endif:endif:endif:endif
return
Old Programmer's are not ugly; they are just Visually BASIC.