JAYSTILLA's Forum Posts

  • 5 posts
  • Your Welcome sman118

  • 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

  • My Solution Below

    The Rate Of Color Change Can Be Adjusted By Adding More Time On to the System Every 2.5 Condition.

    Increasing The Value Will Slow Down Speed And Decreasing Will Speed Up The Rate Of Change

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • kmsravindra Awesome Hopefully Its What You Needed To Hide Form Controls From The Layout And Set A Condition Off To Trigger Them Into Site And Vica Versa For Re-hiding Them At A Later Event.

  • In A Recent Project I also Had The Same Problem With The Progress Bar, Text Boxes And A Slider. I Wanted To Cover The Window With Animated Doors That Opened To Reveal Objects At Start of Layout. I Tried A Multitude of Adjustments But Found A Solution/Work Around To Fix The Issue.

    I Created This Quick Example Capx File To Show How To Stop Form Controls From Appearing On Top Of All Objects and Layers On The Canvas,

    kmsravindra ashwin2000 Check It Out And See If This Concept Can Solve Are At least Help You Work Around Your Issue With The Form Controls.

    <a href="https://www.dropbox.com/s/ee03vrgpj1ubmrq/HIDE%20FORM%20CONTROLS.capx?dl=0">DropBox.Com Capx File</a>

  • 5 posts