Sign in to follow this  
Followers 0
CorayThan

Phaser + Typescript issue

2 posts in this topic

I've got an issue with phaser and Typescript where my classes that extend Phaser classes aren't recognizing the Phaser class fields. I posted a pretty detailed stackoverflow question about it, but was wondering if anyone on here might have a suggestion. Feel free to reply here or there. Here's the details:

 

https://stackoverflow.com/questions/45091893/cannot-access-base-class-properties-in-typescript/45100163#45100163

Share this post


Link to post
Share on other sites

Hi, you should try adding 

constructor(){
  super()
}

I hope this helps, I usually just create objects for my states

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.