Jump to content

Choosing character viev


P4nch0
 Share

Recommended Posts

  • 2 weeks later...

Hi,

 

i found better solution to implement character look choosing.

this is character generator:

http://gaurav.munjal.us/Universal-LPC-Spritesheet-Character-Generator/#

 

Is any way to implement this generator on site with game or i must to create a lot of look options and add it manually to the serwer and them give player way to chose?

Paease give yours ideas :)

 

Link to comment
Share on other sites

Hi,

You can use Phaser to customize you character using different layers (one layer for the body, one for the hair, etc.   remember the correct sequence in the z-axis).

There are a lot of open source sprite sheet to do this (also called "Frankensheet" :)  (e.g. http://opengameart.org/content/lpc-medieval-fantasy-character-sprites ) ). To change the sheet (e.g. for the "head") with a new one, you can use the "myHeadSprite.loadTexture('newSheetToUse', 0);" method.

So, the player has the possibility to change the layer (loading a different sprite sheet for the body, etc.). The way is similar to the example you've used (http://gaurav.munjal.us/Universal-LPC-Spritesheet-Character-Generator/#). 

But, I think that, at least, You have to use a server side program to merge the selected sheets (probably Imagemagick is a good solution) and save the final asset (for example as a blob in a database).

Alex

Link to comment
Share on other sites

Quote

There are a lot of open source sprite sheet to do this (also called "Frankensheet" :)  (e.g. http://opengameart.org/content/lpc-medieval-fantasy-character-sprites ) ). To change the sheet (e.g. for the "head") with a new one, you can use the "myHeadSprite.loadTexture('newSheetToUse', 0);" method.

I am interested how phaser will be know about it must change the head. How to tell it?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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