Hello,
Defold and scripting noob here, so using your simplest words will go a long way to helping!
The error in the topic name references the following line of code:
msg.post("#sprite", "play_animation", { id = anim })
The “play_animation” command is highlighted when I focus in on that line of code, which I’m assuming means that it’s the problem.
I was able to find an old topic that ran into a similar issue here(Error with message (SOLVED) - #7 by 541m0nk1n9) but because I’m using it to directly call the predefined system message as intended, I’m not sure if this actually is the problem.
When the project is built, the animations do play, so I can’t even be sure what this error is causing.
Thank you, these tips solved the error!
I had followed the Astronaut tutorial, which is what pointed me to the msg.post script to the sprite. Is there a reason that the astronaut tutorial doesn’t use the sprite.play_flipbook function?
Basically what I’m trying to understand is if the msg.post script has benefits that the sprite.play_flipbook doesn’t, or if the Astronaut tutorial is just outdated.