Ask coding questions

← Back to all posts
Why does the sprite not load?
h
p1ckl3

I am working on a kaboom game. It may be more complicated than a normal kaboom repl because I made it into Flask. Thanks to @coder100, I could incorporate Flask. But the main point: in the index.html, the sprites will not load. Does anyone know how to load them?

Answered by MrVoo [earned 5 cycles]
View Answer
Voters
p1ckl3
Comments
hotnewtop
MrVoo

Put your sprites folder in a folder named static

p1ckl3

This did not work @MrVoo. Did I do anything wrong?

MrVoo

@p1ckl3 I didn't mean rename, but since you did that change the path on the sprite loading function

p1ckl3

Hmmm @MrVoo. It doesn't seem to work.

MrVoo

@p1ckl3 Well now that you changed it to a .pedit you have to use loadPedit()

p1ckl3

Thanks for all your help @MrVoo!