09-03-2020, 08:07 PM
(09-03-2020, 03:05 PM)DerVVulfman Wrote: Hrm... I thought I isolated that code with an 'unless $mouse.nil?' block....
Change
toCode: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
Oh thanks! I will do that.