The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: AndrewBrewer on May 27, 2009, 07:41:59 AM

Title: Idle pose snippet
Post by: AndrewBrewer on May 27, 2009, 07:41:59 AM
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi46.photobucket.com%2Falbums%2Ff147%2FUsoAndrew%2FNeoGenesis%2FLoZ%2FLink_walk.png&hash=fdac5db3777e2335b61fb1bc8fb68580f298825e)

In this sprite sheet there is a gap in the seventh row. I want to turn that into idle poses for my character. I have been trying to figure this out for a month, so any help or advice would be appreciated. This is what i have so far.


I figure that I should redefine update_stop so that the @pattern points to a variable, like so.

   def update_stop
    if @step_anime
      @anime_count += 1
    elsif @pattern != @IDLE_POSE
      @anime_count += 1.5
    end
    @stop_count += 1 unless @locked
   end
 



Here @IDLE_POSE is my variable. I am not too sure if I am using the wrong type of variable either. In any case my variable should first determine which direction my character is facing. Each direction should be assigned a value between 0-7. Each value points to a specific sprite, namely the seventh row, sprites 0-7. That should do it I think, but I have yet to actually get it to work. If you can offer some advice on how to do this please do so.

Thanks in advance.