[RMVX ACE] [SCRIPTING] COLORING A SPRITE THROUGH PARTS
Posts
Pages:
1
Alright, I know that you can change an image's color values by changing variables such as in:
screen.pictures.start_tone_change(Tone.new(0, 0, 0, 0), wait)
With "Tone.new" being the idea part. Now this is crazy (of course it is, it's me we're talking about here :3 ) but could you apply it to a sprite in game? (Wait for it) The real thought I had was to layer parts of sprites on top of each other to come together as a singular sprite. (There it is!) I would like to know if there is a method to doing this, and if so, how would I go about doing this?
To clarify what I am asking here is: Is there a way to layer sprites on top of one another in parts (one for hair, another for shoes, with the body at the base, perhaps something behind if you want a cape or tail) and then color the layers individually to create a sprite on the screen?
Now I know a method that may need to occur is for the layered sprite would need to be imprinted together and saved as an image file to later be called back from so 20 parts of an entity do not lag the game.
I just want to stack 3 parts (The body/main color, secondary color, and eye color) and set colors to each. Ideally, making a game where parents can pass off some color traits to their youngling. There are different conditions that also determine the offspring's color, but I don't want to go into detail on that since this is not the time nor the place for it (I also know one would need to read the color off of what the parents are, but I think using the Hexadecimal would be a valid approach to it. Probably the hard route, but possible to do. Given that I can do it in Ruby)
screen.pictures.start_tone_change(Tone.new(0, 0, 0, 0), wait)
With "Tone.new" being the idea part. Now this is crazy (of course it is, it's me we're talking about here :3 ) but could you apply it to a sprite in game? (Wait for it) The real thought I had was to layer parts of sprites on top of each other to come together as a singular sprite. (There it is!) I would like to know if there is a method to doing this, and if so, how would I go about doing this?
To clarify what I am asking here is: Is there a way to layer sprites on top of one another in parts (one for hair, another for shoes, with the body at the base, perhaps something behind if you want a cape or tail) and then color the layers individually to create a sprite on the screen?
Now I know a method that may need to occur is for the layered sprite would need to be imprinted together and saved as an image file to later be called back from so 20 parts of an entity do not lag the game.
I just want to stack 3 parts (The body/main color, secondary color, and eye color) and set colors to each. Ideally, making a game where parents can pass off some color traits to their youngling. There are different conditions that also determine the offspring's color, but I don't want to go into detail on that since this is not the time nor the place for it (I also know one would need to read the color off of what the parents are, but I think using the Hexadecimal would be a valid approach to it. Probably the hard route, but possible to do. Given that I can do it in Ruby)
Yes, you can apply colors and tones to sprites.
Pages:
1















