Edd
1
Hi everyone I’ve been trying to use defold-printer in a little project unsuccessfully. I don’t know if I’m doing it wrong but I always get
And here it is the line 6 of the printer.gui_script
It’s just the basic setup from github… so I’m not sure what is going on, thanks.
Pkeod
2
It looks like self.shake_time has not been set.
Maybe @Insality can help.
3 Likes
you need to change the code. Its some thing like :
self.printer:update(dt)
instead of
printer.update(self)
7 Likes
Edd
4
Yes, you were right. It’s totally working now, thank you.
2 Likes
Is’s still not working for me 
I get this :
And here is the code
I tried printer.final(self) but got the same error
Potota
6
In line 3 you forgot to change template_name
to your own value.
No, I didn’t
And I tried to change both to something else but still got the same error.
In init, it needs to be
self.printer = printer.new(self, "template_name")
Note the quotes. 
4 Likes
Yes it’s working. Thank you.
1 Like