1. #1

    Very Basic AI

    I have created a very basic version of an AI. Its a ball that can figure out where you, also a ball, are at any point on the map and then it navigates to and hits you. You can move the ball anywhere and it will end up finding you. I haven't tested it on anything but flat ground, and the ball moves on 1 axis at a time, but it still works. Surprisingly quickly too. The only problem I have encountered is that it won't work unless you're staying still. I know in my head the math required to fix that problem, but I just don't feel like tackling it tonight. Maybe tomorrow, lol.

    Just posting this in case it hasn't been discovered yet. I tried searching for something similar to this, but I couldn't find anything.
    Share this post

  2. #2

    Re: Vary Basic AI

    Sounds awesome!
    Share this post

  3. #3

    Re: Vary Basic AI

    If it can find it's way through a simple maze, you should totally make and share it.
    Share this post

  4. #4

    Re: Vary Basic AI

    Come next week, the AI will teach itself a way to multiply. And the next thing you know, we will all be attacked by metal balls in everything we play.


    And I'm not just talking about Trials Evo.
    Share this post

  5. #5

    Re: Vary Basic AI

    Originally Posted by JackTheFaux
    If it can find it's way through a simple maze, you should totally make and share it.
    I'll share what I have later today 'm at school). I'm not sure if that's possible, because of how I have it determine where the player is. It uses the distance operator to figure out where it is in relation to the player and then every 2 ticks it will move in 1 of the 4 directions and then checks to see if the distance value got smaller. If it did that means the enemy is moving towards the player so it continues moving until the distance stops shrinking or reaches 0. If the checked value didn't get smaller then that means the ball isn't moving towards the player so it changes to a new direction and repeats the cycle. It's not a very efficient method, but it works. If I could somehow create an X Y plane, I know a much easier way to make this.
    Share this post

  6. #6

    Re: Very Basic AI

    I'll be looking forward to this. I'll check your shared tracks when I get home. Also, do you have the means of uploading an in-editor video of it to YouTube? I'm always looking for new things to tinker around with in the editor. I think I'm addicted.
    Share this post

  7. #7

    Re: Very Basic AI

    I made a barrel into a homing missile by attaching a directional force to it and setting the target to the rider. Your idea sounds much more complex.
    Share this post

  8. #8

    Re: Very Basic AI

    Originally Posted by JackTheFaux
    I'll be looking forward to this. I'll check your shared tracks when I get home. Also, do you have the means of uploading an in-editor video of it to YouTube? I'm always looking for new things to tinker around with in the editor. I think I'm addicted.
    It'll be uploaded at around 3pm Central Time, so like 2.5 hours.

    I used to have a Dazzle TV Recorder, but it broke. I can record something on my iPhone, but no promises about how quality it would be. Actually, I think I'm going to remake it before I do that, but I will try to get something for sure. My you tube channel is http://www.youtube.com/user/JF1zl3

    It's a very neat thing to mess with, and I know it can be expanded into much more if you have the patience and mental capacity. Lol.

    Originally Posted by OmegaRob3rt
    I made a barrel into a homing missile by attaching a directional force to it and setting the target to the rider. Your idea sounds much more complex.
    Its essentially the same thing except it can't move diagonally (yet) It also moves somewhat quickly and then stops on a dime. And with your homing missile, you can only do so much with it. But if you use the data sources and operations you can expand on it and give it more things to process.

    +1 For the idea you just gave me, btw.
    Share this post

  9. #9

    Re: Very Basic AI

    If you can develop it enough, you could make a PacMan-like game where the ghosts use your AI.

    As for a maze, you could make a top-down game where you have to guide the ball to a goal in the maze by moving your player around the perimeter of the maze. That would theoretically work, right? The only problem would be making it easy enough to move the player around the outside quickly and consistently enough to keep the game fun and not tedious.
    Share this post

  10. #10

    Re: Very Basic AI

    Originally Posted by JF1zl3

    Originally Posted by OmegaRob3rt
    I made a barrel into a homing missile by attaching a directional force to it and setting the target to the rider. Your idea sounds much more complex.
    +1 For the idea you just gave me, btw.
    Oh cool, glad I could help!
    Share this post