playMaker

Author Topic: Blend between material colours  (Read 3065 times)

MattyWS

  • Junior Playmaker
  • **
  • Posts: 90
Blend between material colours
« on: May 22, 2015, 03:32:43 PM »
Hello! I was wondering if it were possible for an action to fade a materials colour to another colour of your choice over a set time of your choice.. Is this easy? I wouldn't know where to start on this one. :(

Also on a similar note is it easily done with light colours too?
« Last Edit: May 22, 2015, 03:34:35 PM by MattyWS »

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: Blend between material colours
« Reply #1 on: May 23, 2015, 06:18:56 AM »
You would want to start by looking at the ease color action, it will allow you to blend between 2 colors over time, you then set the material to this color.

dudebxl

  • Hero Member
  • *****
  • Posts: 602
Re: Blend between material colours
« Reply #2 on: May 23, 2015, 09:00:07 AM »
or use DoTween actions: http://hutonggames.com/playmakerforum/index.php?topic=10303.0 // http://dotween.demigiant.com/documentation.php

You can fade color from A to B on material / lights / etc..

still in beta and next week, it will have an update including the color action (will add
shader material option) but check it out in between time..

MattyWS

  • Junior Playmaker
  • **
  • Posts: 90
Re: Blend between material colours
« Reply #3 on: May 25, 2015, 10:45:18 AM »
Thanks for the replies! I found changing my lighting was a better solution than material in the end and it makes my game like a chiptune party! :D