Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: R4L on Tue 02/05/2006 22:29:40

Title: Footprints? (SOLVED)
Post by: R4L on Tue 02/05/2006 22:29:40
I was tinkering with Demo Quest II but I could not find any kind of code relating to the footprints you create in the Sierra style room. How do you do this as it is an awesome idea to use in one of my games.
Title: Re: Footprints?
Post by: GarageGothic on Wed 03/05/2006 00:13:43
I believe it's done by RawDrawing footprint sprites at the player.x, player.y coordinates. The Winter Rose also used used this effect for footprints in snow.
Title: Re: Footprints?
Post by: R4L on Wed 03/05/2006 00:19:30
Cool. If too many rawdrawn sprites were on the screen at once, would it affect gameplay?
Title: Re: Footprints?
Post by: GarageGothic on Wed 03/05/2006 00:33:06
No, once you RawDraw a sprite, it's part of the background and doesn't affect performance at all. But be aware that the footprints will disappear if you leave a room and return to it later (the only workaround I see for this is to export the background to an external file on leaving the room, or storing it as a DynamicSprite, but that would be a waste of memory).
Title: Re: Footprints?
Post by: R4L on Wed 03/05/2006 00:36:53
Thats ok because its for an opening scene only. Thanks for the help!  ;D
Title: Re: Footprints?
Post by: SSH on Wed 03/05/2006 12:07:41
Quote from: GarageGothic on Wed 03/05/2006 00:33:06
storing it as a DynamicSprite, but that would be a waste of memory

Why would it be a waste? You're not on a 640K PC anymore!