|
Ruby Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
class Game_Character
#--------------------------------------------------------------------------
# * Get Thicket Depth
#--------------------------------------------------------------------------
def bush_depth
# If tile, or if display flag on the closest surface is ON
if @tile_id > 0 or @always_on_top
return 0
end
# If element tile other than jumping, then 12; anything else = 0
if @jump_count == 0 and $game_map.bush?(@x, @y)
return 12 # <===========================================================
else
return 0
end
end
end |
Die 12 bei der markierten Stelle ist die Höhe des Bush-Depths. Die kannst du entweder durch eine andere Zahl ersetzen,
aber auch z.B. über eine Variable steuern (einfach $game_variables[1] statt der 12 einfügen).