Jump to content

Shifting game code into ES6 causes weird behaviour?


brewsterbhg
 Share

Recommended Posts

Hey everyone,

I'm pretty new to Phaser, and I've run into a problem. I started a project, but recently decided to switch my structure to an ECMAScript 6 format (as I'm more comfortable with class-based programming). The game right now acts as a simple sort of platformer (for the time being). But I've run into a problem where once my player passes the center of the screen, most of the on-screen sprites (the platform group acting as the ground and a sign I've placed) start sliding incredibly fast in the opposite direction. I think it might be an issue with the camera(?), but I'm having a hard time figuring out whats going on (as this was working before the switch).

I've pushed what I have to my github here: https://github.com/brewsterbhg/PhaserPortfolio

Thanks in advance, I'm sure it's something dumb I've done.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...