Author of Events: Jay Stilla
Title: Tint--[eFx]-
.Capx Example: <a href="https://www.dropbox.com/s/e789s9bxgqfegx8/VegasMode-TintFx.capx?dl=0
">DropBox.Com Capx File</a>
Level: Intermediate
Scirra LTD Construct 2 [r204.2 Beta]
Description:Vegas Mode [Several Instance of An Obj - Using Tint Color Effect - Random Parameter & rgb(0,0,0) Value Set From A Single Color Variable With A Value That randomly To Affect Each Instance Separately By .UID#
Layout:
10 Sprite/Object- Instance] Needs An Identifier - Add A Variable Called Color That <Varies> In Value =0
Event Sheet:
1.Condition: System On Start Of Layout
// Action: Sprite - Set Tint Effect to Enable
=================================
2. Condition: System Every Tick
// Action : Sprite - Set Var Color to round(Random(0,255))
// Action Sprite - Set Effect Tint Parameter Index=round(random(0,2)) Value= Self.Color
=============================================================
3.Condition: System Every 2.5 Secs -
// Action Sprite Set Effect Tint Parameter Index= 0 Value= Self.Color+50
Press S - or Add Sub Event
4.Condition: Sprite Pick Instance With UID. Value =round(random(0,10))
//Action Sprite Set Value of Var Color to Choose(25,50,75,100,125,150) + round(Random(100,0)
//Action Sprite Set Effect Tint Parameter Index =1 Value= Self.Color - 50
=====================================================================
5. Condition: Sprite Pick Nearest To - X= random(LayoutWidth), Y = random(LayoutHeight)
// Action Sprite Set Effect Tint Parameter Index= 2 Value= Self.Color-25
sman118