The McLeodGaming forums were permanently closed on April 30th, 2020. You are currently viewing a read-only archive.
View unanswered posts | View active topics It is currently Fri May 15, 2020 5:42 am

Forum rules


IMPORTANT

This Forum is for Flash related questions ONLY! Do not ask questions about spriting, Game Maker, Photoshop, or anything else not related to Flash.



 [ 7 posts ] 
[Request] Another movieclip to follow another 
Author Message

Joined: Wed Nov 26, 2008 10:43 am
Posts: 16
Is there a code for that in AS 2.0,Cause I'm using it so the vcam can follow the character in my game,so is there?
And another code to follow multiple chars aswell :snack:


Sun Jan 25, 2009 3:04 pm

Joined: Mon Aug 11, 2008 7:20 pm
Posts: 28
Location: Here, there, Everywhere.
Does this answer your wish?
http://www.newgrounds.com/bbs/topic/229808/9999

_________________
*adopted by [RANDM] and Kirby_Wins*
Ganonthegreat wrote:
TerminX wrote:
Kyuubit wrote:
Kindom Hearts?

Wtf is that? I've heard of Kingdom Hearts, but not Kindom.

Like Condom Hearts, but cleaner.

So tempted to sig.


Sun Jan 25, 2009 3:45 pm
WWW

Joined: Wed Nov 26, 2008 10:43 am
Posts: 16
hitori masurao wrote:


thanks but no,it didn't :no:


Sat Jan 31, 2009 1:57 pm

Joined: Thu Jan 15, 2009 8:32 pm
Posts: 87
Location: En Ja Moma *wink* * wink*
There ya go bud :P
http://www.newgrounds.com/bbs/topic/296646

_________________
Currently : Developing A Super Mario Solar Star Engine
Hakker wrote:
Wow...Noobs owning noobs.
The problem is resolving itself!

My ssf2 Main : Image


Sat Jan 31, 2009 7:25 pm
User avatar

Joined: Sun Sep 28, 2008 6:46 pm
Posts: 51
Gender: Anime Girl
Well for one, read the tutorial that R.E.B submitted. That will help with the identifying the dupes.
Now dependent on how the movieclip will follow your character, the code need changes.
If its a platformer the AI needs to recongize walls, jumps and well platforms. If its a free
view, like over the head 3d roaming movement, then it might be as simple as
if(this._x<_root.guy._x){_x+=3}...etc.
However depending on how much depth you want to go on with the project yo'll
have to figure out the many circumstances that the computer AI will face.
After you identify the scenarios then you can begin to properly code what you
want.
That's my bit of two cents. If you can give me more info I can try to help some more.
However I too am currently facing this problem and trying to decide how to create
A competent AI structure.

_________________
Would you kindly go here clicky and read at least the first few paragraphs
Image


Sat Jan 31, 2009 10:00 pm

Joined: Wed Nov 26, 2008 10:43 am
Posts: 16
racoon wrote:
Well for one, read the tutorial that R.E.B submitted. That will help with the identifying the dupes.
Now dependent on how the movieclip will follow your character, the code need changes.
If its a platformer the AI needs to recongize walls, jumps and well platforms. If its a free
view, like over the head 3d roaming movement, then it might be as simple as
if(this._x<_root.guy._x){_x+=3}...etc.
However depending on how much depth you want to go on with the project yo'll
have to figure out the many circumstances that the computer AI will face.
After you identify the scenarios then you can begin to properly code what you
want.
That's my bit of two cents. If you can give me more info I can try to help some more.
However I too am currently facing this problem and trying to decide how to create
A competent AI structure.


Ok here is how it works,I have a gun and a dot,I programmed the gun to shoot and i want it to follow the dot like some fairy or sumthing.That way while the dot is moving i can just click and shoot(i already programmed the click and shoot)so with the code i can have the gun following instead of standing there.


Sat Feb 14, 2009 12:49 pm
User avatar

Joined: Sun Sep 28, 2008 6:46 pm
Posts: 51
Gender: Anime Girl
Clyde02 wrote:

Ok here is how it works,I have a gun and a dot,I programmed the gun to shoot and i want it to follow the dot like some fairy or sumthing.That way while the dot is moving i can just click and shoot(i already programmed the click and shoot)so with the code i can have the gun following instead of standing there.



So wait, are you saying that the "gun" is basically being held by the "dot"?
If that's the case all you have to say is that (_root.gun._x=_root.dot._y;_root.gun._y...etc).
If that is not what you meant then I'm sorry but I'm a bit confused at your post.

_________________
Would you kindly go here clicky and read at least the first few paragraphs
Image


Mon Feb 16, 2009 7:49 pm
Display posts from previous:  Sort by  
 [ 7 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF.