Great, now only the battleship shows up. How can I fix that? The "#" sign worke though thanks! Why won't my picture change to a starship? Also, I am trying to delete all the ships being made after 5 but it won't. Please help me. I want to make a cool game but the errrors won't allow me to.
Here's some updated code:
sync on
turna#=1
turnb#=2
load image "x.bmp",1
load image "o.bmp",2
do
cls
print score1#; " is Player One's Current Ships out."
print score2#; " is Player Two's Current Ships out."
if score1# > 6
Print "You cannot Place anymore ships"
turnb#=1
turna#=0
delete sprite xnum#
endif
if score2# > 5
Print "You cannot Place anymore ships"
turnb#=0
turna#=1
endif
if turna#=1
if mouseclick()=1
inc xnum#,1
sprite xnum#,mousex(),mousey(),1
inc score1#
turnb#=1
turna#=0
endif
rem how i fixed the battlship only apperaing problem
wait 1000
endif
if turnb#=1
if mouseclick()=1
inc onum#,1
sprite onum#,mousex(),mousey(),2
inc score1#
turnb#=0
turna#=1
endif
wait 1000
endif
sync
loop
------------------------
Visit my website of Games!
http://dabip.t35.com