Jump to content


Photo

Hue Change

feature

  • Please log in to reply
2 replies to this topic

#1 Tsukihime

Tsukihime

    Advanced Member

  • Ace Member
  • 7,120 posts
  • LocationToronto
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 26 October 2012 - 08:46 PM

Feature: Hue Change
-Tsukihime

feature_hue_change.jpg

This script allows you to change the hue of enemy battlers.
You use a formula to determine the hue.

Download

Script: Download here
Required: Feature Manager

Usage

Tag enemies or states with

<ft: hue_change formula>
Where the formula is some algebraic expression that calculates the new hue at each frame update.

For example, if you want your enemy's hue to be 100, then you can just write

<ft: hue_change 100>
Alternatively, if you would like it to change hues over a period of time, you can use the variable `n` to refer to the current hue, and increment that by some constant rate

<ft: hue_change n+1>
This means that for each update, your hue will increase by 1. This allows you to make a "rainbow" effect as the battler cycles through a bunch of colors.

Edited by Tsukihime, 06 June 2016 - 05:44 PM.

All of my work can be found on my website:

banner200x40.png

You can follow me on any of these platforms:

logo_facebook40x40.pnglogo_twitter40x40.pnglogo_youtube40x40.pnglogo_patreon40x40.pnglogo_instagram40x40.png

Go here for Bugs and Requests.
 
Want to become a beta tester for my plugins before they are released to the public?

#2 PyrO17

PyrO17

    Advanced Member

  • Ace Member
  • 191 posts
  • LocationGermany
  • RM Skill - Jack of All Trades

Posted 26 October 2012 - 09:56 PM

nice :) but wouldn't that look kinda awkward on monsters besides slimes?

#3 Tsukihime

Tsukihime

    Advanced Member

  • Ace Member
  • 7,120 posts
  • LocationToronto
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 26 October 2012 - 10:01 PM

Yes, so you should refrain from giving every monster rainbow sprites. But making a monster red to imply that it is angry might work.

Lots of games are also lazy and don't want to make a million models so they just re-use models and give them different colors. Sure, they actually do some work and re-color them by hand, but if you're lazy you can just change the hue like how RM editor gives it to you.

Edited by Tsukihime, 26 October 2012 - 10:02 PM.

All of my work can be found on my website:

banner200x40.png

You can follow me on any of these platforms:

logo_facebook40x40.pnglogo_twitter40x40.pnglogo_youtube40x40.pnglogo_patreon40x40.pnglogo_instagram40x40.png

Go here for Bugs and Requests.
 
Want to become a beta tester for my plugins before they are released to the public?





Also tagged with one or more of these keywords: feature

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users