I was using VE - Diagonal Movement, but it doesn't have support for diagonal interactions.
By default, Hime's script will pick the character graphic and jump one index to use it diagonally. But I'd like it to change to another graphic like in VE's. Basically, to a graphic with the diagonal sufix indicator.
The module that handles the sprite selection starts at line 175:
Is it possible to change it?
Other issue I saw is that the events can't randomly use diagonal movement like in VE.
EDIT: Nevermind the graphic change, but I found this script by Molegato that implement event diagonal 😀
By default, Hime's script will pick the character graphic and jump one index to use it diagonally. But I'd like it to change to another graphic like in VE's. Basically, to a graphic with the diagonal sufix indicator.
The module that handles the sprite selection starts at line 175:
Code:
class Sprite_Character < Sprite_Base
def update_src_rect
if @tile_id == 0
if @character.direction % 2 == 0
index = @character.character_index
pattern = @character.pattern < 3 ? @character.pattern : 1
sx = (index % 4 * 3 + pattern) * @cw
sy = (index / 4 * 4 + (@character.direction - 2) / 2) * @ch
self.src_rect.set(sx, sy, @cw, @ch)
else
index = @character.character_index + 1
pattern = @character.pattern < 3 ? @character.pattern : 1
sx = (index % 4 * 3 + pattern) * @cw
sy = (index / 4 * 4 + (((@character.direction * 2) % 10) - 2) / 2) * @ch
self.src_rect.set(sx, sy, @cw, @ch)
end
end
end
end
Is it possible to change it?
Other issue I saw is that the events can't randomly use diagonal movement like in VE.
EDIT: Nevermind the graphic change, but I found this script by Molegato that implement event diagonal 😀