• *
  • Posts: 353
Hi, this is my first extension!  8) A small but useful one -> SP_ValueMixer:

Use SP_ValueMixer as an easy way to mix between any two values, value A mixes with value B, use a number between 0.0 and 1.0 to say how much of A shall mix with B.

These are the blocks I have created so far:

So as you can see,  you can also mix colors.

The green block Returns Number
And the blue block Returns Color

 SP_ValueMixer should work on all platforms, and I have only tested on Flash, Android and Windows.

Here is an example, where the MouseY position is used tofade between different values like, Position, Volume, Color:
<a href="http://www.segelson.com/Temp/Stencyl/FaderTest.swf" target="_blank" class="new_win">http://www.segelson.com/Temp/Stencyl/FaderTest.swf</a>
You can also find this Stencyl example project attached, named: FaderTest.stencyl.

How to install extensions: http://community.stencyl.com/index.php/topic,30432.0.html

Please show what you make with it! :D


« Last Edit: May 24, 2017, 09:10:45 am by svintaj »


  • *
  • Posts: 2720
Of course, small but useful extension. Thanks a lot.
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.