Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6700483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:49:13+00:00 2026-05-26T06:49:13+00:00

I’m currently in the process of creating an AI entity for my tile-based game.

  • 0

I’m currently in the process of creating an AI entity for my tile-based game. The game entails an AI character navigating to the players sprite, in order to inflict damage .Currently I use:

        If Ai.SpriteRectangle.X < _sprite.SpriteRectangle.X Then
            MoveRight()
        ElseIf Ai.SpriteRectangle.X > _sprite.SpriteRectangle.X Then
            MoveLeft()
        ElseIf Ai.SpriteRectangle.Y < _sprite.SpriteRectangle.Y Then
            MoveDown()
        ElseIf Ai.SpriteRectangle.Y > _sprite.SpriteRectangle.Y Then
            MoveUp()
        End If

This this is rather deterministic and not would I would call AI. Where would I stand if I wanted to create a non-algorithmic opponent, which learns to avoid (dodge) fireballs fired at them by the Player? Are their any resources etc. Maybe via the use of a genetic algorithm…

I plan on studying artificial intelligence at uni but would like an early introduction.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:49:14+00:00Added an answer on May 26, 2026 at 6:49 am

    I can recommend AI Junkie to you, specifically the section on agents. Judging by the level of your question, this seems like a good starting point: just construct an elementary state machine to group you AI’s behavior. With that in place, you can add more sophisticated behaviors (basic ones like follow, approach, evade and such).

    After that basic stuff is working, you could try to add more sophistication to the AI, but be warned that adding useful genetic algorithms and neural networks is very hard. In my opinion, at this point in time it is not feasible (especially for small score projects) as a smartly created, hard-coded AI will give a much better playing experience.

    The site will offer first insights on all of these (note that there are multiple pages for each section: this might not be clear initally). The code is in C, but I think you won’t have any issues following along. Finally, the book Mat Buckland wrote (the site’s author) – Programming Game AI by Example – is recommended as to providing a gentle introduction into the subject.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
I am currently running into a problem where an element is coming back from
I have thousands of HTML files to process using Groovy/Java and I need to
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.