I've been making a game where you have to try to swat at all of the flies.I want to make it using as little sprites as possible. help?
Offline
The difficulty is in detecting if a stamped fly is touching the swatter. Maybe storing each fly's x and y coordinates in a list and then checking the swatter's distance to every fly every frame? I just hope you don't have too many flies, as the distance formula will have to be run every frame for every one of them.
Offline
If the flies have a constant border color, you can check if the swatter is touching that color.
Offline
scimonster wrote:
If the flies have a constant border color, you can check if the swatter is touching that color.
But then you'd still need a way to delete them after they die
Offline
MoreGamesNow wrote:
scimonster wrote:
If the flies have a constant border color, you can check if the swatter is touching that color.
But then you'd still need a way to delete them after they die
![]()
True...
Then your way might be the best.
Offline
Clear all of the flies, and then redraw all of them except for the one that got clreared. I am not COMPLETELY sure how to do this, bu you need to create a list that stores the fly coridinates (sorry for bad spelling). Set the list items to random numbers, then stamp the flies to those list coridinates. Check out chanmanpartyman's 1s1s Archery for the scripts.
Offline