Log in

View Full Version : resting/relaxed position


llamallover2021
2006-07-29, 03:07 PM
is there a way to make your character "rest" in a stance if you don't move for a while? like if you don't press anything for like, 3 minutes, he goes from a "ready pose" to a relaxed pose.

Atnas
2006-07-29, 04:21 PM
Could be done with timers? or whatever they call them, I'll try and see...

Original Sin
2006-07-29, 06:27 PM
Make your own sprites of the characters in a relaxed pose and when the relaxation is initiated, change sprites and when the relaxation is over, change sprites back.

That simple.

llamallover2021
2006-07-29, 06:37 PM
Well, how do you get it initiated???

Wed-G
2006-08-07, 02:41 AM
Well, how do you get it initiated???

ah. this is my favorite part.

the part I know.

I'm not at a computer so I'm doing this in my head but,

-make 2 variables ("rest input" and "rest timer")

-make a common event ("idle") and make it parallel process

-in the idle event, code this in:


:wait 1 sec
:add 1 to the variable "rest timer"
:Fork option (rest time variable): = 10 or above
{ move event (hero) change graphics (rest sprite)
: key input processing (rest input variable): all boxes checked except the store time one
:Fork option (rest input variable): = 1 or above
{ move event (hero) change graphics (normal sprite)
:set variable "rest timer" to = 0
:set variable "rest input" to = 0
}
}

that should work. I've used it before.