AI Simple

I need that easy Simple Ai code

I can only remember some of it.

here it is.The code is off the back of my head without the sepcial thing MX has so it migh not ll b right

onClipEvent (load) {
speed = 5;
}
onClipEvent(enterFrame) {
if (this > 300) {
}

thats sorta wee i forget

and i know you have to do this

_x += speed
so it moves

well please help i know Lostinbeta did this.

I seriously think im not gonna post any more.

Calm down :whistle:

What AI code do you mean

Just tell me what you need to do

:pirate:

Its supposed to be easy.

I want a block or a guy gra[hic whatever to go back and forth without tween.

Simillar to this code

onClipEvent (load) {
    speed = 10;
}
onClipEvent (enterFrame) {
    _x += speed;
    if (_x > 300) {
    }
}

but i want it then to go to say 50 and reset over again

onClipEvent (load) {
speed = 10;
}
onClipEvent (enterFrame) {
_x += speed;
if (_x > 300) {
_x = -5; //this will reset your symbol
}
}

hope this is what you want

Thanks.

I want it to keep going back and forth.

Not Forth then it goes forth without the Aniamtion

onClipEvent (load) {
	sp = 10;
}
onClipEvent (enterFrame) {
	this._x += sp;
	if (this._x>300 || this._x<0) sp = -sp;
}

Ah Ok

Then it is as Kax posted

:beam:

Bulldog: You have to wait more than an hour before you start saying that you aren’t going to post here anymore. We don’t get paid to do this. We help people here because we want to and we like to help, but we aren’t able to post all day long all the time. Also many of us have jobs or school that we go to and this isn’t a good time for us. Not all of us are 13, 14, or 15 year olds with no resposiblities. As for me, I am in college, I have two jobs, and I have a social life. I rarely have any free time, but most of it is spent on the computer trying to help people or find a way to help them. You need to be patient when you ask for help. Help will come, but you may have to wait for it.

Here is something that you might want to look at in a post that was started by you:

http://www.kirupaforum.com/showthread.php?s=&threadid=10845&highlight=AI+coding

sigh