flashing object on background

classic graphical programming
Post Reply
User avatar
Aaegos
Posts: 1
Joined: Sun Nov 10, 2024 10:19 am

flashing object on background

Post 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?
User avatar
Jerusalem
Posts: 1
Joined: Thu Nov 14, 2024 8:11 am

Re: flashing object on background

Post 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.
Post Reply