RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

Idle pose snippet

Started by AndrewBrewer, May 27, 2009, 07:41:59 AM

0 Members and 1 Guest are viewing this topic.

AndrewBrewer



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.