Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: dbuske on Sat 11/06/2011 13:40:00

Title: Making walkable area slippery
Post by: dbuske on Sat 11/06/2011 13:40:00
In one room I want to make the walkable area ice, and slippery.
How would one do that in AGS.
Title: Re: Making walkable area slippery
Post by: Wyz on Sat 11/06/2011 17:06:40
I think two things are needed to achieve the effect:
1. The walk animation mush look 'slippery'. This means the walk speed mush be faster then normal without the animations being faster. I think the easiest way is to create a custom view for it, you might use different animations as well.
2. When standing still it should continue to move a bit. This can be done by keeping track of the velocity while walking, and applying this velocity to the character as soon as it stops moving (in repeatedly_execute). You need to decrease the velocity each time you apply it or else it will never stop moving, and even ice will have some friction. I guess you need to play with this to make it look right.

Let me know if you need more help, code examples perhaps.
Title: Re: Making walkable area slippery
Post by: dbuske on Sat 11/06/2011 17:33:46
Thanks for the reply.