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.