fbpx

Don’t Touch The Spikes Part 1

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

9 thoughts on “Set Up Physics”

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

  2. 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?

    1. It is possible there is a version I neglected to upload. I’ll just upload the latest now to but sure.
      What code do you mean?

  3. 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?

      1. BOOM, we have liftoff…errr… I mean…we have a, dropping through gravity, bird!!!

        Thanks so much for taking the time to help get this sorted. I look forward to finishing this course tomorrow

Leave a Reply

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

4 thoughts on “Don’t Touch The Spikes Part 1”

  1. 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.