Defold-printer module not working (?) (SOLVED)

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

image

And here it is the line 6 of the printer.gui_script

image

It’s just the basic setup from github… so I’m not sure what is going on, thanks.

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

Yes, you were right. It’s totally working now, thank you.

2 Likes

Is’s still not working for me :frowning:
I get this :

And here is the code
Capture

I tried printer.final(self) but got the same error

In line 3 you forgot to change template_name to your own value.

No, I didn’t
Capture
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. :wink:

4 Likes

Yes it’s working. Thank you.

1 Like