Bullet-dodging AI

This forum is currently in read-only mode.
From the Asset Store
Keep dodging the falling bricks for as long as possible.
  • 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

  • here's an example cap.

    Bulletavoid

  • Great tips people, here's what I've come up with :

    hostmyfilez.com/mvpa4okvxjqt/bullet_dodger.cap

    <img src="smileys/smiley4.gif" border="0" align="middle" />

    Now the only thing missing is walls...

    By the way, how do i make my link clickable like DravenX did?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • By the way, how do i make my link clickable like DravenX did?

    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

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)