How can i recolor pictures?

Mavelyssa

Villager
Member
Joined
Apr 2, 2018
Messages
13
Reaction score
0
First Language
Ukrainian
Primarily Uses
RMMV
Hello. I'm trying to write character generator, but i have no idea how can i recolor pictures like hairstyles etc.
I think that picture 2 is combined with gradient.png and then its laying on the hair basis, but i dont know the way it should be going.
Can u tell me what should i do to recolor pictures? Thanks!
upload_2018-4-1_21-49-24.png
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
Could you be a bit more specific about the bit of coding you are referring to.
 

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,623
Reaction score
1,440
First Language
French
Primarily Uses
RMMV
Hello. I'm trying to write character generator, but i have no idea how can i recolor pictures like hairstyles etc.
I think that picture 2 is combined with gradient.png and then its laying on the hair basis, but i dont know the way it should be going.
Can u tell me what should i do to recolor pictures? Thanks!
View attachment 86231
if you not have software you can maybe try a online color changer.
https://www141.lunapic.com/editor/?action=tintoir
if you need use code , just inject hex tint in the sprite.

sprite.tint = 0xf45642;
look on google for hex reference.
 
Last edited:

Mavelyssa

Villager
Member
Joined
Apr 2, 2018
Messages
13
Reaction score
0
First Language
Ukrainian
Primarily Uses
RMMV
Could you be a bit more specific about the bit of coding you are referring to.
I havent started to write code now, im just trying to understand how can i recolor pictures without graphics editor, only with JS code.
 

Mavelyssa

Villager
Member
Joined
Apr 2, 2018
Messages
13
Reaction score
0
First Language
Ukrainian
Primarily Uses
RMMV
Last edited:

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,623
Reaction score
1,440
First Language
French
Primarily Uses
RMMV
no, image in rmmv use pixi api.
Picture or graphic are not related to element html.
To color html you need use css, but to color a sprite you need use js.
Also Rmmv dont use jquery libs.
I recommended you first to follow some tutorial on youtube to understand how the core work.
Add some console.log inside the rpg_sprites.js to try understand how all work.
 

Mavelyssa

Villager
Member
Joined
Apr 2, 2018
Messages
13
Reaction score
0
First Language
Ukrainian
Primarily Uses
RMMV
no, image in rmmv use pixi api.
Picture or graphic are not related to element html.
To color html you need use css, but to color a sprite you need use js.
Also Rmmv dont use jquery libs.
I recommended you first to follow some tutorial on youtube to understand how the core work.
Add some console.log inside the rpg_sprites.js to try understand how all work.
I think Sprite.SetColorTone is suits me.
PS. Can u name some really usefull tutorials which can tell me how the core works, not "just rewrite this code and you will be fine "
 
Last edited:

Mavelyssa

Villager
Member
Joined
Apr 2, 2018
Messages
13
Reaction score
0
First Language
Ukrainian
Primarily Uses
RMMV
Sorry for interrupting, but i really want to know the way basic char generator does recolors of every part, because i want to do generator which does the same characters.

Could you be a bit more specific about the bit of coding you are referring to.
I want to do the basic character creator after starting new game. (Implement it in the game as starting scene)
 
Last edited:

Mavelyssa

Villager
Member
Joined
Apr 2, 2018
Messages
13
Reaction score
0
First Language
Ukrainian
Primarily Uses
RMMV
del
 
Last edited:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
[dpost]Mavelyssa[/dpost]

Double posting is where you post straight after yourself within 72 hours - and you've done it twice now. If you want to add something, just use the Edit button on your earlier post and add the additional info/comment. If you want to quote more than one person, use the Multiquote option, then they will all go into the same post. Often, though, there is no need to quote if all you are doing is making it clear who you are replying to. Instead type @ followed by the person's username. As you are typing it, a dropdown list appears. Select the name you want, and that will tag the person and let them know that you have replied to them.
 

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,115
First Language
English
Primarily Uses
RMMV
Sorry for interrupting, but i really want to know the way basic char generator does recolors of every part, because i want to do generator which does the same characters.
Are you talking about the character generator in the RMMV editor?

If you are talking about the editor character generator, be aware that:
1.) It is not written in Javascript, it is written in C++ using the Qt application framework
2.) The source code for the editor is not available to the public

If you're looking for the basics of creating an in-game character generator with Javascript, you may be able to study this plugin:
http://sumrndm.site/character-creator-ex/
 

Mavelyssa

Villager
Member
Joined
Apr 2, 2018
Messages
13
Reaction score
0
First Language
Ukrainian
Primarily Uses
RMMV
Are you talking about the character generator in the RMMV editor?

If you are talking about the editor character generator, be aware that:
1.) It is not written in Javascript, it is written in C++ using the Qt application framework
2.) The source code for the editor is not available to the public

If you're looking for the basics of creating an in-game character generator with Javascript, you may be able to study this plugin:
http://sumrndm.site/character-creator-ex/
Ok, now i think about saving the character sprite in img/facer or img/pictures folder, but i dont know how to save sprites.
And his plugin has huge problems with coloring.
 
Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,476
Members
137,824
Latest member
dobratemporal
Top