forums

TNT Basic Forums > Programming Q&A
Sprite wont appear unless...
< Last Thread     Next Thread >
Author
Thread        Post A Reply

10-31-2003 01:27

Posted by:
MapMaker

Location:
Edmonton, Alberta (Canada)

Click Here to Email MapMaker   Find more posts by MapMaker

I have run into yet another problem, but I don't beleive this one is a programming error. I have a very simple if statement that draws a circular sprite onto the screen on canvas 0.
But it dosn't draw it, unless I have a "print" message come up.
Has anyone ever run into this before?
If so, how can it be solved?

Thanks
Mapmaker

if aship = true and dacirc = false and satd[sselected - ((turn - 1)*100) + ((stypeselected - 3)*50)] = false and waitattackselect = false
set pen colour color
sprite 9999,(sx[sselected] - soffsetx[((turn - 1)*4) + stypeselected] - x - 90), (sy[sselected] - soffsety[((turn - 1)*4) + stypeselected] - y - 90),14
dacirc = true
waitattackselect = true
end if

dosn't work, but

if aship = true and dacirc = false and satd[sselected - ((turn - 1)*100) + ((stypeselected - 3)*50)] = false and waitattackselect = false
set pen colour color
sprite 9999,(sx[sselected] - soffsetx[((turn - 1)*4) + stypeselected] - x - 90), (sy[sselected] - soffsety[((turn - 1)*4) + stypeselected] - y - 90),14
dacirc = true
print "????????"
waitattackselect = true
end if

does.

10-31-2003 21:08

Posted by:
buddy

Location:
Champaign, IL

Click Here to Email buddy   Find more posts by buddy

Have you done a "draw frame" after drawing the circle?
Perhaps doing the "print" forces the same effect as a "draw frame" before printing, and that's why it works when you print.

buddy

All times are GMT        Post A Reply

Forum Jump:
< Last Thread     Next Thread >

< Contact Us - TNT Basic >

Powered by: vBulletin Lite Version 1.0.1 Lite
Copyright © Jelsoft Enterprises Limited 2000.