For some reason, when I try to create a new player (because the game is going to be multiplayer), I see that the code gets caught up on this for whatever reason.
Ah right!! I see that this.socket isn’t a PlayCanvas class instance, that means setting the context will not work like that. You should use a regular JavaScript bind like this:
We usually avoid using this.app.assets.get(83955491); method to get assets within our project. This may cause some issues. For example, if you fork the project these asset’s ids will change and your code will break. For example, in your current project this returns undefined
Using assets.find() method to find an asset by each name is the common way to do this to avoid issues like these.