Hey guys. So, I've been using Khas'es Light Script for my Ayumi: Enhanced Edition. In an update I did lately, I wanted to increase the range of the default light effect, so I simply expanded the graphic using paint.net (see 1st image)
Now it works great, but when transitioning to a "tighter" space, the game crashes (see 2nd image)
For the record, the code mentioned in the crash is this one, but I don't think it changes much:
I do not think it matters, since in more open areas it works fine, but I have terrain-tagged the tilesets as Khas instructs, in order for surfaces to bounce off light (see 3rd image)
Do you guys have any idea how to fix this besides shrinking the torch size?
(ftr, just in case it matters, that's the command for the torch:
)
Now it works great, but when transitioning to a "tighter" space, the game crashes (see 2nd image)
For the record, the code mentioned in the crash is this one, but I don't think it changes much:
Code:
for y in (sy-range).to_i..@y1
init = shadow_ix(y)
bitmap.clear_rect(init-phx,y-phy,shadow_fx(y)-init+1,1)
end
end
I do not think it matters, since in more open areas it works fine, but I have terrain-tagged the tilesets as Khas instructs, in order for surfaces to bounce off light (see 3rd image)
Do you guys have any idea how to fix this besides shrinking the torch size?
(ftr, just in case it matters, that's the command for the torch:
Code:
l = $game_map.lantern
l.change_owner($game_player)
l.set_graphic("torch")
l.set_opacity(255,0)
l.show