Making walkable area slippery

Started by dbuske, Sat 11/06/2011 13:40:00

Previous topic - Next topic

dbuske

In one room I want to make the walkable area ice, and slippery.
How would one do that in AGS.
What if your blessings come through raindrops
What if your healing comes through tears...

Wyz

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.
Life is like an adventure without the pixel hunts.

dbuske

What if your blessings come through raindrops
What if your healing comes through tears...

SMF spam blocked by CleanTalk