09-03-2020, 03:05 PM
Hrm... I thought I isolated that code with an 'unless $mouse.nil?' block....
Change
to
The rest of the Lycan code has mouse-related commands encapsulated like that
Change
Code:
keycode = Lycan::MOUSE_ATTACK_KEY
if eval(Lycan::PRESSED_KEY) == true
attack_press = true if Mouse.click?(Mouse::Left_Click)
end
Code:
unless $mouse.nil?
keycode = Lycan::MOUSE_ATTACK_KEY
if eval(Lycan::PRESSED_KEY) == true
attack_press = true if Mouse.click?(Mouse::Left_Click)
end
end
The rest of the Lycan code has mouse-related commands encapsulated like that