Page 1 of 1

flashing object on background

Posted: Tue Nov 12, 2024 8:40 am
by Aaegos
hi,
I'm programming a game and I need to solve a problem. I have a colored background. There are several color objects on the foreground. Once I've selected an object, it has to start flashing until I select another location to move it to. Then stop the object flashing and changes its position.
The problem is how to make flashing ... Any idea?

Re: flashing object on background

Posted: Thu Nov 14, 2024 9:22 am
by Jerusalem
well, First, you need to create the foreground object as a transparent image. Create a loop. In an odd loop, the object appears in the foreground. Remove the object from the foreground in an even loop and restore the background. Add a pause to each loop to flash. That's all.