Can some one help me learn how to construct a relatively basic boss Artificial Intelligence. I'm really confused on how to make Artificial Intelligence in the first place. So if any one can help me just comment here.
Depends what sort of boss you're planning to make.
Don't aim for perfection- you'll miss the deadline
'~Tom~ says (16:41):
well why does the custom controls for the keyboard palyer even affect the menu controls at all whats thep oint jsutm ake it so for the keyboard palyer on the menu screens everything is always up down left right enter regardless of the controls they set'
You first step would be to determine how you want your boss to move. Simply saying "a stationary one that is in the walls" isn't enough for us to help you at all. Is it an eye on the wall that shoots at you? Etc.
If you just mean a boss constantly on the wall that shoots at you, it's insanely simple. first, you would go to the event editor, and insert the event:
every (X) second(s)...
(here your boss will shoot X at you.
(X means specify. In this case, say WHAT object your boss will
shoot at you.) The event you want is... Have (Boss) shoot (X) at (Player) at specified co-ordinates, relative to the Player. IOW, What the boss will do every 1 second is shoot something in your Character's direction.
Idk if this helps, but That's the best way I can specify it.
I wrote an article on it. As I say to everyone else, it's specific to every game, so it's impossible for anyone to give you an AI that fits your game. It's something that you'll have to do yourself, no copy & paste engines for it.
http://www.create-games.com/article.asp?id=1913
In short, just make the computer do what you would do. That's all AI is about.
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.
In the case with a boss, you have to plan ahead of time how you want the character to act.
The two main things you might want if you're going to make any kind of character seem like it has life, and is making it's own unpredictable choices, but knows where you are... would be:
Any directional extension, if you're using 360 movement, or "Look in Player Direction"
And Random( X )
Well, yeah, if you're lazy, you could just give it like a path movement and make them attack every few seconds. That's what a lot of the old games did
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.
Originally Posted by Muz [AFK] Well, yeah, if you're lazy, you could just give it like a path movement and make them attack every few seconds. That's what a lot of the old games did
And some of my newer ones!
If you're going to use this method, make sure to also include that the guy is near the boss too. It'd be REALLY dumb to have the boss going crazy attacking empty space after all!
--
"Del Duio has received 0 trophies. Click here to see them all."
"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"
DXF Games, coming next: Hasslevania 2- This Space for Rent!
Just spray the whole screen with bullets. That's what classic bosses do. The player is expected to go out of the area where it's attacking.
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.
squishy is a friend of mine, were working on a game together, exactly what we want is a boss that is stuck to the wall, he will shot at you, but shoot different things depending on how far away or close you are to him, when he is almost dead he would disappear into the wall and appear on the ceiling and do more stuff, or something like that is what he said to me
[Game design makes my brain feel like its gonna explode.]
Make the following alterable values inside the boss:
"Distance to Player"
"Health" (...of the boss, starting at, say, 1000)
"State" (this'll be the state, whether in the wall or on the ceiling)
"Shoot Type" (the type of projectile to fire)
To work out the distance to the player, do this formula:
.........DO THE SHOOT
............VERY FAR
...............(code for this kind of bullet)
............FAR
...............(code for this kind of bullet)
............MEDIUM
...............(code for this kind of bullet)
............CLOSE
...............(code for this kind of bullet)
............VERY CLOSE
...............(code for this kind of bullet)
............EXTREMELY CLOSE
...............(code for this kind of bullet)
For each bit you'd need to comment on how it varies depending on the state (in the wall, on the ceiling, etc).
You'd want a bit (probably under 'States') which checks when the state first becomes 'ROOF' and sets the Shoot Type to something like 'HOLD' (this will stop any missiles being shot, of any kind). Then tell the boss to follow a path movement to retreat into the wall and reappear on the roof, showing a different animation (e.g. upside down).
Then stop 'HOLD'ing the Shoot Type, and its normal behaviour should continue.