Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: remmies on Sun 18/07/2004 02:34:24

Title: character following player
Post by: remmies on Sun 18/07/2004 02:34:24
I am sure this must have been asked before but i couldn't find it any where in the forums. How do i make it so that a charcter follows the player around???
Title: Re: character following player
Post by: monkey0506 on Sun 18/07/2004 02:41:29
FollowCharacter (CHARID, 1)

or something like that. I think.
Title: Re: character following player
Post by: TerranRich on Mon 19/07/2004 05:42:33
Next time, please search the AGS manual. Thanks. :)
Title: Re: character following player
Post by: monkey0506 on Tue 20/07/2004 22:21:05
Was I actually right about something???
Title: Re: character following player
Post by: remmies on Tue 20/07/2004 22:48:04
 ;Dhaha, Yes you were right about the line of code itself, but now where do I put it in the script?I havn't done anything in the game except made my first room and right now I just want to test it, so where do i insert the line of code into the script?
Title: Re: character following player
Post by: Mr Flibble on Tue 20/07/2004 23:08:52
Whenever you want it to happen.

For example, if you want it to happen after your intro, put the line in after the intro script.

If you want it to happen when the char clicks on a hotspot, put it in the interaction ed.
Title: Re: character following player
Post by: TerranRich on Wed 21/07/2004 03:53:42
This is in the BFAQ: http://bfaq.terran-x.com/#coding03

This is a common question. New users usually ask where they put code. It's a very simple answer: If you want to display a message rght when the room first loads, after the fade-in, then you would open up "Interaction Editor" and look for the "Player enters room (after fade-in)", and put it there.