Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Introducing JavaScript Finishing the Game Adding Animated Characters

I save the file for the star but when i view it it is just a black screen

i did what it the video tells me to do but it just shows up as a black screen after i added the star

Steven Parker
Steven Parker
231,248 Points

There could be a syntax error. If you share your code perhaps we can help. A great way to do that is to make a snapshot of your workspace and post the link to it here.

3 Answers

Verify if you named the image correctly. Should be "poison.png"

I think you just forgot to create the name of star . should be something like this:

game.load.spritesheet('star', 'star.png', 32, 32); I hope will help you !

this exact same thing happened to me so I had to save every time I "createItem"