question, i like your video i was wondering if u can help me with a question i came up with an idea lets say there are two pc's ,in pc 1 there are three box's that are out putting letter from a-z box=f box=r box=w the next set of boxs box=h box=l box=x these are random generated letter that are place in the box,s box 1 a-z box 2 a-z box-3 a-z
is it possible to see what pc 1 is out puting then take that info and manually in put it into pc 2 then could pc 2 know where pc 1 is going and what pc 1s next out put would be before it comes out
You know, you can at least tell us that you were squaring because I had no fucking clue why you were multiplying the player and enemy x and y coordinates two times in a row.
erm i'm sorry but the retards who are saying this isn't Artificial Intelligence are wrong it is because you are giving it a code to let it command it self to follow you this means you are not controlling it to follow e.g.(using a button or keys) its moving by its self
Artificial intelligence is AI, that is where you give a NPC, Computer, Character, Scenery Object, etc. a mind of it's own. In this case pbj746 used a Math expression called Math.sqrt which was used to be able to check if the character was within the distance (100 pixels) squared of the enemy, thus making the enemy have a mind of its own by knowing when or when not to fallow the character. AI is simply any type of Math expression (Math.atan2, Math.sin, Math.cos, etc.)
@FlashReknown Wow, that could not be more wrong. Sin, cos, etc. are basic trigonometry and have nothing to do with simulating "intelligence", artificial or otherwise.
i am making a maze game about not toucing the edges but i want to make it interesting and make walls move like upside down so its harder....please help ME!!!!!!!!!!!
Dame you suck at tutorials. you can't even explain what the hell your doing lol. leave it to the pros anybody really wantta learn Flash type in "robgraham". this guy is a joke.
Lol? Like you know anything about flash. Your just saying that cause your to knew to it to understand this. Go to simple tutorials newb. And im not saying newb to be meen, im saying it to be true. :)
Manifest222, for the record. i might be new to actionscripting but im a fast learner. I only be doing this shit for four months now and already i can touch on a lot. but i wont aurge over youtube lol. By dec i'll be good enough to post my own vids on actionscripting. oh yeah dont player hate on simple tutorials cause everybody starts there. Right? Lmao!!
well for me ive been doing flash about 5 or 4 months now, im a pretty fast learner like you. Whatever, totally forgot i even watched this vid. and I agree, fighting on youtube is pretty stupid, so whatever.
how would u make it so tht if u clik on something then right click somewhere else it would go there? and then wen u left click somewhere else it would kinda unselect it?
this is a good tut thanks, and to those who are slating it i would say you could call this hollywood AI its not really AI, but the enemy has the appearance of AI.
thats fuckin no AI. U dont even know the ABC of AI.Dont fuckin try to fool others by typing the code from reading the book and even then doing the idiot mistake. For AI u better go to some expert and ask what prolog and Lisp is. u jerk..idiot
nice job. i was confused at first since i thought that the equation you had looked similar to the distance equation or pythagorean theorem except it had a multiplication sign.
u r right..this guy is bullshit for not knowing even def of AI. I wrote him-:thats fuckin no AI. U dont even know the ABC of AI.Dont fuckin try to fool others by typing the code from reading the book and even then doing the idiot mistake. For AI u better go to some expert and ask what prolog and Lisp is. u jerk..idiot"
good job, but you SERIOUSLY NEED TO ZOOM OUT instead of panning around so much. it's starting to make me sick and detracts from the information being presented. rating of 5 though.
Comment removed
realisticHomeboy 9 months ago
good step in tut, but getting dizzy from the zoomed in view (not to nag though, appreciated this video)
vi54 10 months ago
Thank you and subbed
Left4DeathInFire 1 year ago
voice is not clear
sandhya1089 1 year ago 4
This has been flagged as spam show
manattan342 1 year ago
This has been flagged as spam show
is it possible to see what pc 1 is out puting then take that info and manually in put it into pc 2 then could pc 2 know where pc 1 is going and what pc 1s next out put would be before it comes out
manattan342 1 year ago
Thats not a.i., thats basic collision detetion and managment. If what you've done is A.I., pong would be god.
nexusdawn 1 year ago
not an artificial intelligence...
LeeviON 1 year ago
oh, so this cube is neither self aware nor sentient.......but it can follow a sphere!!!
almostnuclearwar 2 years ago
You know, you can at least tell us that you were squaring because I had no fucking clue why you were multiplying the player and enemy x and y coordinates two times in a row.
gamefreak1000000 2 years ago
this aint A.I. Just a simple list of commands.
BKKTran 2 years ago
simple commands are A.I. you dumbass...
CryShoot123 2 years ago
At 09:47 when you were changing the + and -, you deleted the '"x"
Instead of this._x += 5
you wrote this._ += 5
Thats why it didnt follow you at the right
ClaudioArrau 2 years ago
he doesnt go tords me
PivotMasterTony 2 years ago
erm i'm sorry but the retards who are saying this isn't Artificial Intelligence are wrong it is because you are giving it a code to let it command it self to follow you this means you are not controlling it to follow e.g.(using a button or keys) its moving by its self
vide0viwer 2 years ago
Wouldn't artificial intelligence allow the cube to decide not to follow the circle as it leads to no purpose?
bakereffect 2 years ago 12
Artificial intelligence is AI, that is where you give a NPC, Computer, Character, Scenery Object, etc. a mind of it's own. In this case pbj746 used a Math expression called Math.sqrt which was used to be able to check if the character was within the distance (100 pixels) squared of the enemy, thus making the enemy have a mind of its own by knowing when or when not to fallow the character. AI is simply any type of Math expression (Math.atan2, Math.sin, Math.cos, etc.)
any questions? Chris
FlashReknown 2 years ago 6
when do you learn atan2, sin, and cos? I know what a square root is, but what about the ones you stated?
gamefreak1000000 2 years ago
@FlashReknown Wow, that could not be more wrong. Sin, cos, etc. are basic trigonometry and have nothing to do with simulating "intelligence", artificial or otherwise.
equin0x80 9 months ago
Great job. Only thing I gotta say is get better sound quality.
EmberStudios 2 years ago
lol it wouldn't move right because he deleted the x hahaha lolzies
doomshark 3 years ago
damn noob who want to impress ppl easy as shit
ZeroMemPtr 3 years ago
thats called programming not a.i. but thanks for sharing!
fred21679 3 years ago
i doo
cherokee162 3 years ago
i am making a maze game about not toucing the edges but i want to make it interesting and make walls move like upside down so its harder....please help ME!!!!!!!!!!!
IM A SUBSCRIBER LOOKING FOR HELP!
caloca17 3 years ago
This has nothing to do with artificial intelligence yet. And yes, this tutorial must be a joke.
malintome 3 years ago
i agree! thats called programming not a.i. wtf?
fred21679 3 years ago
Dame you suck at tutorials. you can't even explain what the hell your doing lol. leave it to the pros anybody really wantta learn Flash type in "robgraham". this guy is a joke.
Datafaceninja 3 years ago
Lol? Like you know anything about flash. Your just saying that cause your to knew to it to understand this. Go to simple tutorials newb. And im not saying newb to be meen, im saying it to be true. :)
Manifest222 3 years ago
Manifest222, for the record. i might be new to actionscripting but im a fast learner. I only be doing this shit for four months now and already i can touch on a lot. but i wont aurge over youtube lol. By dec i'll be good enough to post my own vids on actionscripting. oh yeah dont player hate on simple tutorials cause everybody starts there. Right? Lmao!!
Datafaceninja 3 years ago
well for me ive been doing flash about 5 or 4 months now, im a pretty fast learner like you. Whatever, totally forgot i even watched this vid. and I agree, fighting on youtube is pretty stupid, so whatever.
Manifest222 3 years ago
Lulz. "U SUX0RZ. I'VE ONLY MADE FLASH FINGS FOR 2 MONFS AND I DINK U SUX0RZ, EVEN THOU I CAN ONLEE MAEK CUSTOM POINTAHZ."
PieManTheHero 3 years ago
what was that?
snoffe1234 2 years ago
I forgot.
PieManTheHero 2 years ago
how would u make it so tht if u clik on something then right click somewhere else it would go there? and then wen u left click somewhere else it would kinda unselect it?
dec20056 3 years ago
like a strategy game
dec20056 3 years ago
this is a good tut thanks, and to those who are slating it i would say you could call this hollywood AI its not really AI, but the enemy has the appearance of AI.
fadermusprime 3 years ago
lol your typing from a book arent you =p
jelmer91 3 years ago
lol you accidently deleted "x" so it wouldnt follow one way lol
animation7king 3 years ago
This isn't AI dumbass.
codyr783 3 years ago
thats fuckin no AI. U dont even know the ABC of AI.Dont fuckin try to fool others by typing the code from reading the book and even then doing the idiot mistake. For AI u better go to some expert and ask what prolog and Lisp is. u jerk..idiot
hardy2soft 3 years ago
That was actually pretty cool, thanks again for posting it.
GargoyleGreenGiant 3 years ago
i need the code
AustonWass 3 years ago
didnt work. But thanks for the tut anyway.
regor01 3 years ago
nice job. i was confused at first since i thought that the equation you had looked similar to the distance equation or pythagorean theorem except it had a multiplication sign.
sannin3 4 years ago
Thats not AI. Shame on you!
999madcows 4 years ago
u r right..this guy is bullshit for not knowing even def of AI. I wrote him-:thats fuckin no AI. U dont even know the ABC of AI.Dont fuckin try to fool others by typing the code from reading the book and even then doing the idiot mistake. For AI u better go to some expert and ask what prolog and Lisp is. u jerk..idiot"
hardy2soft 3 years ago
sorry sorrymen, its not working. im trying to post it, but i think this is what u are looking 4:
if(Math.sqrt((ux-ex)*(ux-ex)+(uy-ey)*(uy-ey))<distance){
superskateman1 4 years ago
i cant post anymore for some reason
superskateman1 4 years ago
i NEED the code
soorrymen 4 years ago
heres one half:
onClipEvent(enterFrame){ distance = 100; ux = _root.char._x; uy = _root.char._y; ex = _root.robot._x; ey = _root.robot._y;
BeemNinja 4 years ago
and heres the other:
onClipEvent(enterFrame){ distance = 100; ux = _root.char._x; uy = _root.char._y; ex = _root.robot._x; ey = _root.robot._y;
BeemNinja 4 years ago
u posted the same thing twice :3
UBERMAN7764 2 years ago
Thanks for the tut. Its really helpful :)
smellycheeseman1 4 years ago
u are good at debugging soemtimes it takes me some time to figure out what is wrong with my scripts
matimaster 4 years ago
kronicTOOL: You remember the word, "Shut!"
and PXzyan: You remember the word, "Up!"
OK, now take turn repeating these words to each other.
CNNfan 4 years ago
could you put the actionscript used to make you go up down left right i cant put it
sasuke8685 4 years ago
wonder how u do in math. rofl dude u are awsome at this i would like to learn some action script
matimaster 4 years ago
I copied the code for moving the guy with the arrow keys and it said this
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 5: '{' expected if(Key.isDown (Key.RIGHT)) {
Total ActionScript Errors: 1 Reported Errors: 1
DeLuca2400 4 years ago
My enemy just goes up and doesn't stop. Any Idea why?
doombunny3 4 years ago
Well I fixed that now it just doesn't follow me... And the code is correct.
doombunny3 4 years ago
good job, but you SERIOUSLY NEED TO ZOOM OUT instead of panning around so much. it's starting to make me sick and detracts from the information being presented. rating of 5 though.
DukeOfMarshall 4 years ago
This comment has received too many negative votes show
He mainly needs to stop doing tutorials using videos. Also, don't call that AI.
speps 3 years ago