1
TI-BASIC / Lightning!
« on: March 25, 2010, 07:09:57 pm »
Hey! I'm currently working on my first RPG in pure BASIC.
For the main menu, i want to have lightning strikes on the horizon in the picture on the backdrop. So far, this is my code:
Pic3 is the normal picture, and Pic5 is the normal picture, but with lightning bolts in the picture. My problem is this: the ClrDraw causes the whole picture to flicker, and i don't know how to avoid it. And yes, I know the flickering can be interpreted as lightning strikes, but i still don't like it.
For the main menu, i want to have lightning strikes on the horizon in the picture on the backdrop. So far, this is my code:
Code: [Select]
:Lbl M1
:RecallPic Pic3
:While 1
:rand(25
:RecallPic Pic5
:rand(25
:ClrDraw
:RecallPic Pic3
:End
Pic3 is the normal picture, and Pic5 is the normal picture, but with lightning bolts in the picture. My problem is this: the ClrDraw causes the whole picture to flicker, and i don't know how to avoid it. And yes, I know the flickering can be interpreted as lightning strikes, but i still don't like it.