Writing some code now, 1st game where man has to jump onto a swinging rope.
Rope code is something like
For angle= -2 to 2 step .1
Line (120,120, 100*(1+sin(angle)),100*(1+cos(angle)),cBlack)
Next
..etc...
Obviously the rope leaves a trail of where it was before. Rather than drawing over the previous line in the background colour I wanted to try the
SetTransparencyColor function and then draw it to the foreground (I saw it was done like this in the clock program.)
What do I have to do to make this happen?
I tried SetTransparencyColor=CBlack, and put a ,f) at the end of the line command but it didnt make any difference. Do I specifically have to clear the foreground somehow before I redraw my rope.
I hope my question makes sense? Grateful for any help
Rope code is something like
For angle= -2 to 2 step .1
Line (120,120, 100*(1+sin(angle)),100*(1+cos(angle)),cBlack)
Next
..etc...
Obviously the rope leaves a trail of where it was before. Rather than drawing over the previous line in the background colour I wanted to try the
SetTransparencyColor function and then draw it to the foreground (I saw it was done like this in the clock program.)
What do I have to do to make this happen?
I tried SetTransparencyColor=CBlack, and put a ,f) at the end of the line command but it didnt make any difference. Do I specifically have to clear the foreground somehow before I redraw my rope.
I hope my question makes sense? Grateful for any help