Discussions

SmileBASIC Community

julithjulithJKL

01/03/2016 2:14 AM ·Spoilers

Open Closed

enemy AI

does anyone know how to make a enemy ai program if so could you tell me how to make it

Advertisement

Comment

This post has no comments.

  • Just imagine you're standing over the shoulder of someone controlling the enemy, but who has never played the game before. You have to tell him what he should do. ... Ok. Look, he's over there. Rotate your ship towards that direction. Now apply your thrusters. When you get within range, fire. Oh. He moved. Ok. Reverse thrusters. We have to avoid the gravitation field of that star. ... etc.

    Yeahs1
    Played
  • Once you figure out how the enemy should behave. You have to define the rules he must play by. A really simple example is the "house rules" for the card game "blackjack": "The dealer must hit until the cards total 17 or more points."

    Yeahs1
    Played
  • ok thanks

    Yeahs1
    Played
  • AI is one of the most complicated things even in modern computer science, but most AIs just have to make 3 things "Walk, turn, shoot" that´s probably what you are making?

    Yeahs1

Add a Comment

You must sign in to post a comment.

Sign in using a Nintendo Network ID to connect to users around the world by writing posts and comments and by giving Yeahs to other people's posts. You can create a Nintendo Network ID using your Wii U console or your system in the Nintendo 3DS family.

Use of Miiverse Details about Miiverse

Report Violation to Miiverse Administrators

You are about to report a post with content which violates the Miiverse Code of Conduct. This report will be sent to Nintendo's Miiverse administrators and not to the creator of the post.

Violation Type:

Post ID: 3DB-NBL7-BXM-ZM97-6F2-XRE4

Report Violation to Miiverse Administrators

You cannot report posts made automatically by a software title.

Edit Post

Select an action: