RPG Maker VX Ace

RPG Maker VX Ace

통계 보기:
Chimera245 2015년 7월 11일 오전 8시 05분
Flipping Enemy graphics?
Is there a way to flip enemy graphics horizontally? I'm using Yanfly's Visual Battler script, and all the default enemies in the database face left if they face any direction at all. Is there an easy way to invert the graphic so they face right instead? (aside from exporting every enemy, inverting in a photo editor, and importing...)

I didn't see any options for this in either the enemy editor or the Yanfly script...
< >
전체 댓글 3개 중 1~3개 표시 중
Kio Kurashi 2015년 7월 11일 오전 9시 00분 
Place this after Yanfly's scripts:
module ENEMY_SPRITE_FLIP #Fill LIST with the ID's of enemies that need #to have their sprites reversed horizontally. LIST = [ 1, 2, 3 ] end class Spriteset_Battle alias flip_enemies_mod create_enemies def create_enemies flip_enemies_mod for sprite in @enemy_sprites sprite.mirror = true if ENEMY_SPRITE_FLIP::LIST.include?(sprite.battler.enemy_id) end end end
Don't forget to fill out the LIST array with the id's of the enemies.
Kio Kurashi 님이 마지막으로 수정; 2015년 7월 11일 오전 9시 01분
Chimera245 2015년 7월 11일 오전 10시 15분 
Thanks. And that's Enemy editor number, NOT enemy graphic number, right?
Kio Kurashi 2015년 7월 11일 오전 10시 30분 
Yes.
< >
전체 댓글 3개 중 1~3개 표시 중
페이지당 표시 개수: 1530 50

게시된 날짜: 2015년 7월 11일 오전 8시 05분
게시글: 3