Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: RetroJay on Thu 29/05/2008 05:21:20

Title: The very first time a player enters a room.(SOLVED).
Post by: RetroJay on Thu 29/05/2008 05:21:20
Hi peeps.

Please help me I'm going mad. :(
First of all I am using AGS 2.72.

I am begining to panic cos I feel that something is going wrong!

I am trying to make some things happen the very first time you enter a room. (I do not want them to happen again).
All I want is for the character to enter the room, walk to a specific point, face a direction and say something. Sounds simple doesn't it.
However if I open up the "Player enters room for the first time" tab and run a script and type what I want i.e. "character[whatever].walk(?,?);"
and then "character[whatever].FaceLocation(?,?);" it doesn't work.
Although if I use the inbuilt comands within the editor everything works.
What the hell am I doing wrong?

Please help me.
Thanks.
Jay. 
Title: Re: The very first time a player enters a room.
Post by: Gilbert on Thu 29/05/2008 06:15:48
Hmmm is the walk blocking?
I'm not sure but if there're other actions followed by it they may cancel the walk if it's not set to blocking.

Try adding a Display("hi!"); or something line to the script and check whether the event is really triggered.
Title: Re: The very first time a player enters a room.
Post by: RetroJay on Thu 29/05/2008 16:15:18
Hi Gilbot.

Oh boy do I feel stupid. :-[
Of course you were correct it was the blocking that was the problem.
It all works now wonderfully.

I really do not know what the hell I was doing last night. The amount of times I have used the "First time player enters room"
yet last night I just couldn't seem to get my head around the prob so eventually gave up.
Today however I read your reply, loaded AGS up and my game, and BINGO! sorted it with no sweat or tears.
I think my brain may have encountered a "Fatal Exception Error". ;D

Anyway thank you very much.

Jay.