playMaker

Author Topic: typewriter with fade in  (Read 1622 times)

IIKII

  • Full Member
  • ***
  • Posts: 137
  • Lonely developer
    • Patreon
typewriter with fade in
« on: January 20, 2019, 09:42:10 AM »
Hi, I am using string typewriter for my game but I am hoping to improve on it by adding in a 'fade in' effect on the last text character while it is being typed.

Any pointers to achieve that kind of effect?

thanks
Support me on Patreon for free adventure games and development insights - https://www.patreon.com/koexstudio

ch1ky3n

  • Full Member
  • ***
  • Posts: 208
Re: typewriter with fade in
« Reply #1 on: January 21, 2019, 05:36:47 PM »
You can use mecanim/animator to achieve that

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: typewriter with fade in
« Reply #2 on: January 22, 2019, 02:56:10 AM »
Hi,
You can use a float interpolate and a 'Set Color' action (there are different set color action depending on your needs)

You will need to use the float in the alpha and run from 0 to 1 or vice versa.

IIKII

  • Full Member
  • ***
  • Posts: 137
  • Lonely developer
    • Patreon
Re: typewriter with fade in
« Reply #3 on: January 22, 2019, 11:13:23 PM »
I am referring to fading in of the last character of the text, not the entire text.

Kind of like this example here (skip to 1.00)

Every time each character appeared, it will have a fading effect.
Support me on Patreon for free adventure games and development insights - https://www.patreon.com/koexstudio

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 768
Re: typewriter with fade in
« Reply #4 on: January 22, 2019, 11:48:24 PM »
Textmesh pro has some examples of how to achieve this. TMP is free and recommended. Check out their examples.

IIKII

  • Full Member
  • ***
  • Posts: 137
  • Lonely developer
    • Patreon
Re: typewriter with fade in
« Reply #5 on: January 23, 2019, 05:45:25 AM »
Textmesh pro has some examples of how to achieve this. TMP is free and recommended. Check out their examples.

Yeah I studied the vertex color example but it is not easy scripting it to change the alpha value.

Any chance you know how?

thanks
Support me on Patreon for free adventure games and development insights - https://www.patreon.com/koexstudio