Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: mikesdk on Thu 18/09/2008 14:38:17

Title: Slightly confused.. DrawMessageWrapped
Post by: mikesdk on Thu 18/09/2008 14:38:17
I was looking through the manual to see if I could come up with a clever way to make multi colored credit texts when I stumbled across DrawMessageWrapped. Great! I think, but then I notice.. It doesn't take a string input but an integer referrring to a... room message? Seeing as I'm using AGS 3.0.2 I am therefore somewhat puzzled, as I thought global AND room messages were done away with for good... How do I define a Room Message? Or better yet, why doesn't DrawMessageWrapped take a direct string input?

Mike

EDIT: Okay I found out where to do the room messages, but I think it would be best to do away with the backwardness of this function, in line with how DisplayMessage was changed to the much simpler Display.
Title: Re: Slightly confused.. DrawMessageWrapped
Post by: Khris on Thu 18/09/2008 15:19:47
Hehe, uh,
http://www.adventuregamestudio.co.uk/manual/DrawingSurface.DrawStringWrapped.htm
Title: Re: Slightly confused.. DrawMessageWrapped
Post by: mikesdk on Thu 18/09/2008 15:54:37

Oops, missed that one. But that leads me to the question: if DrawStringWrapped exists, why is the other one there with it's "obsolete" implementation?
Title: Re: Slightly confused.. DrawMessageWrapped
Post by: Khris on Thu 18/09/2008 16:29:14
Backwards compatibility, I guess.
Title: Re: Slightly confused.. DrawMessageWrapped
Post by: Pumaman on Thu 18/09/2008 19:21:04
Global messages are obsolete and were removed, but room messages still exist. You can find them by opening a room, going to the Properties pane, finding the "Messages" entry and clicking the "..." button.

They are still useful on occasion, in particular because if you wanted a very long string it might exceed the script editor's line length limit.