Hello! I feel like this is a simple fix, but I'm not good with scripting. I essentially want the functionality of both of these two scripts.
class Game_CharacterBasedef update_bush_depth if normal_priority? && !object_character? && bush? && !jumping? @opacity = 80 unless moving? else @opacity = 255 end endend
I've tried putting both in, mixing them together, all kinds of things, but I can't seem to get it to work. The result I'm looking for is the character being partially covered by a bush, preferably a bit more than default, with the bit of the bush that's covering the character being completely opaque.
If someone could figure out how to combine these scripts, or if there's an easier solution, I would be very grateful!
class Game_CharacterBasedef update_bush_depth if normal_priority? && !object_character? && bush? && !jumping? @opacity = 80 unless moving? else @opacity = 255 end endend
Code:
class Game_CharacterBase # OVERWRITE def update_bush_depth if normal_priority? && !object_character? && bush? && !jumping? @bush_depth = 8 unless moving? else @bush_depth = 0 end endend
If someone could figure out how to combine these scripts, or if there's an easier solution, I would be very grateful!