Jump to content

How Can I Create diferent size spritesheets using the same image on Phaser


Jason87
 Share

Recommended Posts

Hello, I am relatevely new on phaser, I started building a prototype of a slide puzzle with phaser, wich is pretty basic stuff, just to get started, I have managed it pretty well so far, the thing is I want to put several dificulty levels, by dividing the image on more smaller squares, wich makes it harder, so, I use spritesheets like this:

 

this.game.load.spritesheet("tilesHard","assets/1.jpg",160,96);

 

this.game.load.spritesheet("tilesHarder","assets/1.jpg",120,96);

 

The thing is that aparently this way I have to load the image every time for each diferent size spritesheet. Wich for a large ammount of images, it is a problem, loading the same one several times.

 

My cuestion, is there a way of fixing this, meaning: Can I make the different size spritesheets, from the same image, loading it only one time ?

 

Thanks a lot

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 months later...

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...