I have a player.go with a player.script attached. The script has two properties on it defined with go.property(). I’m using the Platypus library.
If I run the game and try to change the properties inside player.script, the game can reload with no issues. But if I try to change the properties on the game object in its Properties window, an error is thrown:
ERROR:SCRIPT: /platypus/platypus.lua:282: You must provide a velocity stack traceback: [C]: in function 'assert' /platypus/platypus.lua:282: in function 'right' /src/player/player.script:30: in function </src/player/player.script:28>
This pops up because I’m calling
self.platypus.right(self.move_speed) in on_update. I couldn’t get a print statement from on_reload, but I figured it was safe to assume self.move_speed was nil.
What causes this to happen? Is there a way for me to prevent this behaviour, or should I stick to reloading the script instead?