Reply From: | kidscancode |
There are multiple types of InputEventMouse
events. A mouse button event doesn’t have a relative
property, but a motion event does. You’re checking all mouse events, and therefore you get this error. Since you seem to only care about motion events, change to
if event is InputEventMouseMotion:
NICE, thank you very much, my friend, it is greatly appreciated although my grappling gun doesn’t seem to work so gotta fix that now.
Jared Dixon | 2022-03-05 13:29