PDA

View Full Version : Very Basic AI



rlmergeuser
04-30-2012, 05:32 AM
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.

rlmergeuser
04-30-2012, 06:20 AM
Sounds awesome! http://forum.redlynx.com/forum/images/smilies/icon/smile.gif

rlmergeuser
04-30-2012, 06:53 AM
If it can find it's way through a simple maze, you should totally make and share it.

rlmergeuser
04-30-2012, 07:19 AM
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. http://forum.redlynx.com/forum/images/smilies/icon_e_surprised.gif

rlmergeuser
04-30-2012, 05:01 PM
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 http://forum.redlynx.com/forum/images/smilies/icon_asleep.gif'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.

rlmergeuser
04-30-2012, 05:58 PM
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.

rlmergeuser
04-30-2012, 06:32 PM
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.

rlmergeuser
04-30-2012, 06:35 PM
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.


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. http://forum.redlynx.com/forum/images/smilies/icon/smile.gif

rlmergeuser
04-30-2012, 07:37 PM
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. http://forum.redlynx.com/forum/images/smilies/icon/biggrin.gif 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.

rlmergeuser
04-30-2012, 07:40 PM
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. http://forum.redlynx.com/forum/images/smilies/icon/smile.gif

Oh cool, glad I could help!

rlmergeuser
04-30-2012, 09:21 PM
This sounds great. I look forward to watching the progress.

rlmergeuser
04-30-2012, 09:30 PM
Its uploaded, its called "AI 1" by JF1zl3 and its under skill games.

SparkierJoNESZ
04-30-2012, 10:16 PM
i made a homing misile that works everywhere through datascources

and i can do as far as i know everything with it, can change speed, rotation, can add explosions
now i just need a great idea to use it somewhere where it has some meaning

its funny because i can probably let it take of on the end of the map it will get closer and than blow your face off
this editor is awesome

rlmergeuser
05-01-2012, 04:48 PM
Haven't tried it yet but is there a hit trigger for when the enemy ball hits your ball? It could be set to end the game etc.

SparkierJoNESZ
05-01-2012, 04:58 PM
yes you can let the on hit trigger work this way