Sure
`Start program
sync on : sync rate 0
backdrop off
`Create an image (you can also replace this part by just loading one)
cls
ink rgb(255, 0, 0), 0
line 0, 0, 50, 50
line 50, 0, 0, 50
get image 1, 0, 0, 50, 50, 1
`Start the main loop
do
`Clear the screen with a yellow color
cls rgb(255, 255, 0)
`Position the sprite at the mouse pointer.
`If the sprite does not yet exist, it is created automatically.
sprite 1, mousex(), mousey(), 1
`Turn off transparency
if upkey() > 0 then set sprite 1, 1, 0
if downkey() > 0 then set sprite 1, 1, 1
sync
loop
use up/down arrow keys to toggle between transparency.
It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.