Don’t Touch The Spikes Part 1

This content is protected, please login and enroll course to view this content!


  1. why on the step set up physics my code error.. Uncaught TypeError: Cannot read property ‘setGravityY’ of null.. this.bird.body =null

  2. First, make sure you have physics enabled. Is there a box around the bird?

  3. I get the same error as gmich_.

    I don’t have a box around the bird but my template also seems to be a bit different than what you are showing in the vid. Some of it looks the same but I did not have the commented out physics portion in mine. Is there a newer version of your template?

    I also noticed in the previous video, the code you have to copy isn’t quite the same as what you did in the video?

  4. Hmmm, sadly I still get the same error.

    One thing I did notice is when I hover over the “this.bird = this.placeImage” it shows the method but it does not show the “physics?” part of the method, it ends at “scale: any”
    When I then go to baseScene.js, it only shows “placeImage(key, pos, scale)”
    Could that be why there is an issue?

Leave a Reply

Your email address will not be published. Required fields are marked *


  1. I want to thank the author for this course! It’s very useful. Please, keep doing it!

  2. Hi William,

    Is it possible to add user text-input in the game? Then, some people and I would be willing to join the course.
    I found lots of people asked this question.
    I saw some plug-ins, which is too hard for me to follow.

Comments are closed