Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Work in Progress / Simple AI DLL For Sprites WIP

Author
Message
The Lone Programmer
21
Years of Service
User Offline
Joined: 29th Jan 2003
Location: California, USA
Posted: 8th Apr 2006 18:26
Hello,
I have been working briefly on an AI DLL that works for sprites.

So far its coming to be pretty successful. I would like people to comment on the current progress I have.

Included in the download I have the DLL to drop into your Plugins-User folder and two examples. One of which is a Pong example and the other is just an example of AI following the player.

I am pretty sure I documented the examples well enough.

I would appreciate any comments, suggestions, bugs reports, ect. If you enjoy this version of the DLL then go ahead and use it in your programs.

Thanks,
The Lone Programmer

"Is The Juice Worth The Squeeze"
-The Girl Next Door

Attachments

Login to view attachments
dj blackdragon3710
20
Years of Service
User Offline
Joined: 5th Nov 2004
Location: In LaLa land
Posted: 10th Apr 2006 01:56
Make it 3d, would cover a whole lot more people, with a bigger response on code...

<<<<<Used to be "djblackdragon" with being registered in January, 2003, no matter what it says on the left<<<<<
The Lone Programmer
21
Years of Service
User Offline
Joined: 29th Jan 2003
Location: California, USA
Posted: 10th Apr 2006 05:51
dj blackdragon3710
I appreciate the feedback. I plan on having some 3D complete by next Saturday. Can't program during the week because of school.

As for AI commands. Do you have any suggestions?


Thanks,
The Lone Programmer

"Is The Juice Worth The Squeeze"
-The Girl Next Door
DB newbie
19
Years of Service
User Offline
Joined: 13th Nov 2005
Location: um..... i dont remember.
Posted: 10th Apr 2006 06:02
how about something for when the object gets like 10 feet away or something it will atrt to shoot or come twards the other object.

visit my site (unfinished)
www.freewebs.com/dbnewbie
The Lone Programmer
21
Years of Service
User Offline
Joined: 29th Jan 2003
Location: California, USA
Posted: 10th Apr 2006 08:42
I left that part up to the user.

I added a command for the 2D AI which is:
Integer = AI_2D_Active(AI_Number, Player_Number)

That would be where you imply the shooting code. The command:
Setup_AI_Zone AI_Number, minX, minY, maxX, maxY

That command is the zone to decide how far away the AI is from the player before it detects it.

So if you want the AI to detect the player at maybe 10ft maybe try something like:
Setup_AI_Zone AI_Number, 10, 10, 10, 10

I am pretty sure in 2D, space is represented as pixels apart, but you should get the idea.

If I took over the AI too deeply, then it would be molded for specific purposes only.

Like maybe I made a command that told an AI to shoot when it became in range. Well then the AI's purpose would be more than likely for a shooter.

I want what one may call "A Well Rounded AI" meaning works in any situation. I would like to be able to set up the user to easily be able to imply whatever specific purpose the AI will be used for, whether it be racing, shooter, arcade, rpg, ect.


I am still working on a 3D AI DLL, and I am hoping it to be done, or close to it by the end of the week. Please keep up suggestions, comments, or anything else.

Thanks,
The Lone Programmer

"Is The Juice Worth The Squeeze"
-The Girl Next Door
dj blackdragon3710
20
Years of Service
User Offline
Joined: 5th Nov 2004
Location: In LaLa land
Posted: 10th Apr 2006 20:37
I would like some AI with action commands (ie, go here, press this, do this..) Other than that, whatever you want to put into is just fine with me.

<<<<<Used to be "djblackdragon" with being registered in January, 2003, no matter what it says on the left<<<<<
The Lone Programmer
21
Years of Service
User Offline
Joined: 29th Jan 2003
Location: California, USA
Posted: 11th Apr 2006 01:12
dj blackdragon3710
I will consider it. It will definately add limitations to the AI commands potential, but maybe I will add both manual coding commands, and action commands so there is choice.

I appreciate the advice.

Thanks,
The Lone Programmer

"Is The Juice Worth The Squeeze"
-The Girl Next Door
Dextro
19
Years of Service
User Offline
Joined: 26th Feb 2005
Location:
Posted: 29th Apr 2006 21:15 Edited at: 29th Apr 2006 21:17
I think this plugin is awesome, good job.
I love it being for 2d; I would say, keep it 2d, and make another plugin for 3d.
Just... awesome.
ConorH
21
Years of Service
User Offline
Joined: 5th Feb 2003
Location:
Posted: 21st May 2006 23:05
second that

Any forms of pathfinding?
Like from a matrix of ones and zeros?

tar

its my new rat tail dog!

Login to post a reply

Server time is: 2024-11-17 07:12:52
Your offset time is: 2024-11-17 07:12:52