Jump to content

Help with Buttons


hopgop1
 Share

Recommended Posts

5 hours ago, samme said:

That sounds like there's a problem with the state's create property.

I also looked at how my create was defined above, but I've called it the same thing everywhere I need to reference it, no typos or anything from what I can see, just really stumped as to what I've done wrong.

Link to comment
Share on other sites

9 minutes ago, samme said:

When exactly do you get this error?

Ordinarily that would happen while a state is starting.

Yep happens as soon as the state loads. It also creates 2 smaller weird windows below the actual game, but I think that’s a separate issue

Link to comment
Share on other sites

8 hours ago, samme said:

Make sure you have only one new Phaser.Game(…).

See https://codepen.io/samme/pen/bLQeoV?editors=0010

 

You absolute genius, I knew it would be a simple error, I suppose that's what I get for using parts of other peoples code :lol:. I get a different error now relating to my game over state, but I'll try and solve that myself. Thank you so much samme!!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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