dont stay far away as notplayer as often

This commit is contained in:
bgkillas 2024-08-21 14:40:18 -04:00
parent 2d107e5c35
commit fbb0de1538

View file

@ -310,6 +310,7 @@ local function choose_movement()
local LIM = give_space
if swap_side and (on_right ~= (my_x > t_x) or GameGetFrameNum() % 300 == 299) then
swap_side = false
give_space = 100
end
if swap_side then
LIM = 0
@ -391,6 +392,9 @@ local function choose_movement()
state.control_a = false
state.control_d = false
end
if give_space > 50 and GameGetFrameNum() % 30 == 0 and not last_did_hit then
give_space = give_space - 10
end
end
local function position_to_area_number(x, y)