Jump to content

Load new sprite


Lucas
 Share

Recommended Posts

I am creating an online game .. and every time someone comes in, takes the phaser load a new image of the character .. 

 

And after loading the image 100%, need add animations motion. How can I do? For load.spritesheet add a function and it did not work ..

 

I have a function called NewPlayer, which is called every time a new user connects.

 

thx

Link to comment
Share on other sites

Yes.. i created this: 

function preload(){    //....}function create(){    //....}function update(){    //....}function newPlayer(data){    //I want to put here to load a new tileset ... and after you finish loading the tileset, I will create an array with the information of the player.}
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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