Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Sprite_Character
- #--------------------------------------------------------------------------
- # ● 位置の更新
- #--------------------------------------------------------------------------
- alias vxace_sp1_update_position update_position
- def update_position
- move_animation(@character.screen_x - x, @character.screen_y - y)
- vxace_sp1_update_position
- end
- #--------------------------------------------------------------------------
- # ● アニメーションの移動
- #--------------------------------------------------------------------------
- def move_animation(dx, dy)
- if @animation && @animation.position != 3
- @ani_ox += dx
- @ani_oy += dy
- @ani_sprites.each do |sprite|
- sprite.x += dx
- sprite.y += dy
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement