Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Artificial Intelligence



Hey. I am looking fo rsomeone who knows this form of script.I am making an amazing flash for Newgrounds.com and it involves 5 other players that are (comp) and then one who is you. It will be a bombshell when its ready,and its already pretty far along.The illustrators are amazing,and I have an affiliate on it. If someone knows this type of script,I may be able to pay them,depending how quickly they can finish. Please contact me,or post here if anyone does

DoctorMoxley@gmail.com
DoctorMoxley on aim



FlashKit > Flash Help > Flash ActionScript
Posted on: 06-20-2005, 03:39 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Artificial Intelligence
Does anyone here know how to make a decent flash AI, for specifically a fighter game?
I dont want it to be impossibly hard though.
I have Flash MX and I have been working for a week.
Any help would be appreciated.

Artificial Intelligence
Im trying to make a fighter game with guns and bullet time and such, and I cant make any damned AI. Is there any easy way or tutorial, cuase I am confused. :P

Artificial Intelligence
Hello, could someone help me with a script that would randomly move an object up down left and right randomly. It has to do this and also change the rotation of the object to face the direction it's moving. I need this to be on a movieclip that will be duplicated so that each object moves around independently.

It would also be helpful for the object to pause in a place and wait every once and a while as well. (maybe even move toward an object when one appears)

if nobody has a script even remotly close to this, could you explain how I would go about setting one up?

Thanks

Artificial Intelligence
Hello!

I was wondering if it was possible to utilize Action Scripting as a way to program artificial intelligence right into Flash?

Any insights would be great.

URLs to sites that do this would be awsome as well.

Thanks!

-Daniel





























Edited: 05/05/2006 at 04:20:23 AM by Daniel Rappaport

[AS] Artificial Intelligence
Hello everyone.

Is there any online tutorial on turn-based artificial intelligence dealing with games?

What I am looking for is an example on how level of difficulty is coded into the game.

As an example, chess. How does the computer manages it's A.I such that it can differentiate the level of difficulty when applying it's moves after the player has made his/hers ?

ActionScript And Artificial Intelligence
Here's a good question that came up in a discussion.

The situation: I'm working on a collaborative project where there will be a story told through flash. The project will have an interface with buttons that can change the tone of the story at any given point. Many tones of dialogue have been written.

The question: Can an engine be created inside of flash so that the users actions will be processed and then call or load a movie based on that interaction with the buttons?

Please e-mail me if solving this problem interests you, or if you need more detailed information.

Thanks.

mjmachon@hotmail.com

[F8] Artificial Intelligence Scripting
can anybody post a link or two of some good AI scripting tutorials? i am making a game that needs this type of scripting and i don't know a thing about it

i want to make 2 different types of games. if u can help with either of these two types, i would be greatly obliged.
one of the game types i want to make, is a game where the player-character moves around on platforms and attacks the enemies *duh* but, i want the enemies to move around on the same platforms and attack the player-character.

the second type of game i want to try to make is a game where the enemy is stuck in the center of the stage and it follows the player character around and randomly attacks the enemy

Artificial Inteligence Help.
Sorry my bad english.

Artificial Inteligence help:
Hi!
I started to work on a RPG, but the problem is that the enemy
just want to go left and right, not left right up and down when you get close to it
please some would be glad if some one could see the problem with this Scripts. (I'm new on this website so I dont know how to use the forum)

ENEMY, instance name: eRobot

Code:
onClipEvent(enterFrame)
{
distance=200
rx=_root.hero._x
ry=_root.hero._y
erx=_root.eRobot._x
ery=_root.eRobot._y
if (Math.sqrt( (rx-erx)*(rx-erx) + (ry-ery)*(ry-ery))<distance){
if(rx<erx-40)
this._x-=4;
this.play();
if(rx>erx+40)
this._x+=4;
this.play();
}else{
this.gotoAndStop(1);
}
if(_root.hero.hitTest(this))
_root.eRobot.weapon.play();
}
onClipEvent(enterFrame)
{
distance=200
rx=_root.hero._x
ry=_root.hero._y
erx=_root.eRobot._x
ery=_root.eRobot._y
if (Math.sqrt( (rx-erx)*(rx-erx) + (ry-ery)*(ry-ery))<distance){
rx2 = _root.hero._x
ry2 = _root.hero._y
cx2 = _root.eRobot._x;
cy2 = _root.eRobot._y;
angle = Math.atan2(ry2-cy2, rx2-cx2)/(Math.PI/180)
_rotation = angle
}
}
''Hero'' instance name: hero

Code:
onClipEvent (load) {
moveSpeed = 7;
wallSpeed = 3;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
if (_root.Walls.hitTest(getBounds(_root).xMax,_y,true)) {
} else {
this._x += moveSpeed;
_root.Walls._x -= wallSpeed;
_root.g._x -= wallSpeed;
this.gotoAndStop(3);
}
} else if (Key.isDown(Key.UP)) {
if (_root.Walls.hitTest(_x,getBounds(_root).yMin,true)) {
} else {
this._y -= moveSpeed;
_root.Walls._y += wallSpeed;
_root.g._y += wallSpeed;
this.gotoAndStop(2);
}
} else if (Key.isDown(Key.DOWN)) {
if (_root.Walls.hitTest(_x,getBounds(_root).yMax,true)) {
} else {
this._y += moveSpeed;
_root.Walls._y -= wallSpeed;
_root.g._y -= wallSpeed;
this.gotoAndStop(5);
}
} else if (Key.isDown(Key.LEFT)) {
if (_root.Walls.hitTest(getBounds(_root).xMin,_y,true)) {
} else {
this._x -= moveSpeed;
_root.Walls._x += wallSpeed;
_root.g._x += wallSpeed;
this.gotoAndStop(4);
}
}
}
kokomannen_007@hotmail.com
If you want a .fla file
Hope you help.

Artificial Inteligence
Hi there people.
Im doing a flash game, its a moto racing game.
You are one of the four motos.
To make a moto that the user controls its ok, but what about the other 3 motos? A.I (artificial inteligence) dont?
The other three motos are controled by the computer. How to do this?
The game its top viewed you can see all the track and all the cars.
Its diferent for who its thinking that the track that moves, no in this game the motos who moves around the track.
Its like the "racing" game clicking on "fla source files" section then "games".
Thanks

marcelozep

Creating Navigation With Some Intelligence
Hi all,
I am attempting to create navigation that has a little bit more intelligence, but really don't know where to start.

The top level of the navigation as sub nav associated with each. These display on rollover.

What I am unsure of is how to hold the navigation in its on state (with subnav displayed) untl teh user chooses from another section.

I was told that variable and arrays come into play here, but I am still a little green when it comes to these.

Any thoughts on this are much appreciated.

-J

Artificial Life Sites
I posted this in the Coffee Lounge too, but I'd specifically like to get links to advanced Actionscripting Artificial Life Flash sites, so I'm cross posting it here hoping to grab the attention of Advanced scripters.

Anyone know of Flash sites with Artificial Life experiments on them?

Artificial Inteligence (Strings)
Hi People, Hope you are well,

I am just starting working with strings and am wondering if anyone can help me with a couple of problems.

Firstly I am attempting to make some kind of artificially inteligent chat for a game. I am using an input text box and need to determin what is contained within the input box to determin the output just like any AI bot program.


Code:
if (InStr(input, "SH*T")) {
swear = true;
}
if (swear = True) {
swear = swear + 1;
if (swear = 1) {
output = "Please Don't Swear!";
}
if (swear = 2) {
output = "Damn it, I don't like it when you swear.";
}
if (swear = 3) {
output = "You're ticking me off, and you are going to force me to ignor you.";
}
if (swear > 3) {
output = ".................................";
}
}
The part I'm most concerned with is the "InStr" command, you may gather I put that to represent:
"In the string of Input variable."
I don't actually know how to represent it in Flash.

If anyone has any ideas I would be most appreciative. So thankyou in advance for any posts.

Gary

Any Alternative For Flash? It's Eating Up What's Left Of My Intelligence....
onClipEvent (enterFrame) {
startDrag ("_root.dragObj", true, 0, 143, 770, 186);
if (_root.main.hitTest(_root._xmouse, _root._ymouse, true)) {
Mouse.hide();
} else {
Mouse.show();
}
}

so when I add this code to an instance of a movie clip on the main timeline the Mouse.hide works but the drag function cannot be constrained to a rectangle no matter how hard I bash my keyboard... This piece of code used to work... but that is before I totally forgot how to do it while trying to deal with another flash impossibility, in other words, I am in need of everybody else's almighty and infinite knowledge once again, because what little I had is no more...

Help With Simple Swarm Intelligence Hopfuly Producing Intelligent Emergence Behaviour
hey I need help..... I am having trouble making my guys move right.... when they get a certain distance from the random point generated when they are created they begin to erratically bounce and make no progress. I've discovered the distance that they start to do this all depends on the velocity.... can anyone help me?


Code:
maxnum = 1//random(50)+10;
for (i=1; i<=maxnum; i++) {
_root.attachMovie("lax", "lax"+i, i);
_root["lax"+i]._x = Math.random()*550;
_root["lax"+i]._y = Math.random()*400;
_root["lax"+i].tox = Math.random()*550;
_root["lax"+i].toy = Math.random()*400;
_root["lax"+i].v = Math.random()*15+5;
_root["lax"+i].onEnterFrame = function() {
this.xdist = (this._x-this.tox);
this.ydist = (this._y-this.toy);
this.dist = Math.sqrt((this.xdist*this.xdist)+(this.ydist*this.ydist));
if (this.dist<2) {
this.tox = Math.random()*550;
this.toy = Math.random()*400;
}
this.angle = Math.atan2(this.ydist, this.xdist);
this._rotation = this.angle/(Math.PI/180)-90;
this._x += Math.sin(this.angle/(Math.PI/180))*this.v;
this._y += Math.cos(this.angle/(Math.PI/180))*this.v*-1;
if (this._x>600) {
this._x = -50;
}
if (this._x<-50) {
this._x = 600;
}
if (this._y>450) {
this._y = -50;
}
if (this._y<-50) {
this._y = 450;
}
};
}
PS: .fla attached

Copyright © 2005-08 www.BigResource.com, All rights reserved