Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[RESOLVED] help with color tone!!!

Be more precise please. You want to change the tone of a sprite?

First of all, your object must have the tone property. Classes like Viewport and Sprite have it. If I remember well, the only thing you need to do is change the tone like that:
Code:
my_object.tone = Tone.new(red, green, blue, gray)
you can also change each colors manually
Code:
my_object.tone.red = x
my_object.tone.green = x
my_object.tone.blue = x
my_object.tone.gray = x
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top