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!

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

The poison image wont show up as I follow along in the video. Am I doing something wrong?

please help.

Steven Parker
Steven Parker
228,039 Points

Try making a snapshot of your workspace and post the link to it here so we can get a look at the issue.

A snapshot is a fantastic idea. Syntax is important, verify that you have mimicked the load/create function calls exactly as the video does. Also make sure you're saving the game.js file with the changes you've made for them to actually show.

1 Answer

Manuel Uribe
Manuel Uribe
6,249 Points

If the source code was copied and updated incorrectly, the image won't load. For example, the following line will give you an error because 'coin' needs to be updated 'poison'.

game.load.spritesheet('coin', 'poison.png', 32, 32);