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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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