Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: T_ed89 on Mon 28/03/2005 15:11:02

Title: Why does the command reapet 2 times?
Post by: T_ed89 on Mon 28/03/2005 15:11:02
In one room (where you don't see the charakter)
I display 3 messages after echader, i'ts on the any click command, so you first click and a message displays then one more click and another message displays and the old goes away. After this three messages your supposed to be removed to another room but instead, the game repeat the messages again 2 times and then you go to the room. Thanks for helping
Title: Re: Why does the command reapet 2 times?
Post by: Ashen on Mon 28/03/2005 15:19:14
What code are you using?
Title: Re: Why does the command reapet 2 times?
Post by: MillsJROSS on Mon 28/03/2005 19:13:42
My suggestions, look in your script and see if you've had DisplayMessage(XX) more than once. If this isn't the case, it would be nice to see the code you are using in this room, as it's hard to help you if we have nothing to go on.

The best way to go about doing this originally, would be using the message editor, and clicking "include next message" or something similar (I don't have access to AGS at my current locale), except the last one. Then in your script just have it DisplayMessage(FirstMessage); and then a NewRoom command, and it all should work, without problems.

Also, sometime it's better to start from scratch, so if you're really having trouble, make a new room and save it over the room you're having problems with.

-MillsJROSS
Title: Re: Why does the command reapet 2 times?
Post by: T_ed89 on Mon 28/03/2005 23:53:07
Thank you guys, i did start the room all over and no it works good.