Page 1 of 1

How do I freeze character for a short time

PostPosted: Mon Feb 13, 2006 5:42 am
by stevirt
I am trying to make a guy frozen for a couple of seconds when he hits something. I have used "event disable" which puts him out of comission - then how do I put in a pause before i do "event enable"? I guess I don't know how to use timers well enough? Tried some things but not working.

Thanks in advance for any help :D

PostPosted: Mon Feb 13, 2006 10:11 am
by Diana Kennedy
You'll have to work with a timer. First, ad to the collision event an event disable actioan. also in the colllision event create timer (with the tme desired) on the timer action set event enable.

This was just a quick tought, I hope it was right.

PostPosted: Tue Feb 14, 2006 6:32 am
by stevirt
Thanks Diana - took me a while to figure out those timers exactly but I finally got it working. I think what got me is the fact that you need to create a timer as a result of an action, and then create a timer again as part of the actor - with a result that follows at the end of the timer. Makes sense now - will be a handy tool.

PostPosted: Tue Feb 14, 2006 10:23 am
by Diana Kennedy
Yes, Timers require a bit - time - to learn their proper use, but then, they are a powerful tool. I hope you can make your special idea get working, if not come back and ask, there are a lot of people here who already know better than me anyway.