Zelaron Gaming Forum

Zelaron Gaming Forum (http://zelaron.com/forum/index.php)
-   RPGMaker (http://zelaron.com/forum/forumdisplay.php?f=188)
-   -   resting/relaxed position (http://zelaron.com/forum/showthread.php?t=40145)

llamallover2021 2006-07-29 03:07 PM

resting/relaxed position
 
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

Quote:

Originally Posted by llamallover2021
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:


Code:

: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.


All times are GMT -6. The time now is 07:29 PM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.