How would I go about creating an object that will dodge the bullets i shoot, or dodge any other object for that matter.I tried, but i can't think of anything simple. The reason I'm asking is because i have a plane shooting game , and i want the boss battle to be more entertaining, by making the boss plane to dodge the bullets you shoot as much as it can.
A simple way to do it without math, is have an invisible(visible until you get it working) sprite of a long thick line sticking out of the front of the bullets, you can adjust it's length according to how early you want the enemy to begin dodging or depending on bullet speed, and make the enemy move laterally when overlapping the line. If you want to increase the intelligence not to dodge into other bullets or take into account other bullets on their way the problem begins to get more complex, but alot can still be solved by invisible detector sprites, like a horizontal line sticking left and right out of your ship, and if it overlaps a bullet detector in one direction and not the other it can dodge in the correct direction
[QUOTE=shadowlord]By the way, how do i make my link clickable like DravenX did?[/QUOTE] With the uniform resource locator tag, url /url Just click on the little world icon with the chain link and complete it with the address and title