You can paste the image to the screen with "paste image", use "timer()" to determine if 10 seconds have past and there are several ways to make the image disappear.
One method is to simply clear the screen with "cls". In this code it clears the screen and pastes the image every loop... once "sec" is zero it exits the loop and make another "cls" without pasting the image.
` Load the image
load image "ZorkWhiteHouse.png",1,1
` Create variables to store the timer() and delay (sec)
second=timer()
sec=10
do
` Clear the screen
cls
` Paste the image to the screen
paste image 1,0,0
` Check if a second has passed (1000 = 1 second)
if timer()>second+1000
` Reset second timer
second=timer()
` Decrease the number of seconds you want to delay
dec sec
` Check if sec=0 and if so exit the do/loop
if sec=0 then exit
endif
` Print the text
text 0,200,"This image will dissapear in "+str$(sec)+" seconds."
loop
cls
text 0,200,"Gone!"
wait key
Or if you don't like the idea of clearing the screen (which would clear all typed text you can change the ink color to black and make a box over the picture.
` Set the text to overwrite the background color too
set text opaque
` Load the image
load image "ZorkWhiteHouse.png",1,1
` Create variables to store the timer() and delay (sec)
second=timer()
sec=10
` Paste the image to the screen
paste image 1,0,0
do
` Check if a second has passed (1000 = 1 second)
if timer()>second+1000
` Reset second timer
second=timer()
` Decrease the number of seconds you want to delay
dec sec
` Check if sec=0 and if so exit the do/loop
if sec=0 then exit
endif
` Print the text
text 0,200,"This image will dissapear in "+str$(sec)+" seconds. "
loop
` Change the ink color to black
ink 0,0
` Make a box to cover the image
box 0,0,300,191
` Change the ink color back to bright white
ink rgb(255,255,255),0
` This has many spaces to overwrite the previous text
text 0,200,"Gone! "
wait key
You can also make the image a sprite and have it slowly fade out (since you use Pro). I'll post that code in a few hours... I've got to get back to work right now.