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)
endCode:
unless $mouse.nil?
keycode = Lycan::MOUSE_ATTACK_KEY
if eval(Lycan::PRESSED_KEY) == true
attack_press = true if Mouse.click?(Mouse::Left_Click)
end
endThe rest of the Lycan code has mouse-related commands encapsulated like that

![[Image: QrnbKlx.jpg]](https://i.imgur.com/QrnbKlx.jpg)
![[Image: sGz1ErF.png]](https://i.imgur.com/sGz1ErF.png)
![[Image: liM4ikn.png]](https://i.imgur.com/liM4ikn.png)
![[Image: fdzKgZA.png]](https://i.imgur.com/fdzKgZA.png)
![[Image: sj0H81z.png]](https://i.imgur.com/sj0H81z.png)
![[Image: QL7oRau.png]](https://i.imgur.com/QL7oRau.png)
![[Image: uSqjY09.png]](https://i.imgur.com/uSqjY09.png)
![[Image: GAA3qE9.png]](https://i.imgur.com/GAA3qE9.png)
![[Image: 2Hmnx1G.png]](https://i.imgur.com/2Hmnx1G.png)
![[Image: BwtNdKw.png%5B]](https://i.imgur.com/BwtNdKw.png%5B)