User Tag List

Results 1 to 2 of 2

Thread: I have a race condition that I am unable to resolve.

  1. #1
    Clicker Install Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Darkhog's Avatar
    Join Date
    Jan 2009
    Location
    /dev/null
    Posts
    466
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)

    I have a race condition that I am unable to resolve.

    Hello. So I am dealing with a rather nasty and annoying race condition that I can't resolve. I want to set effect for a couple of objects at specific point in a song, then when that moment comes again on the subsequent loops, do it all over again. Basically switch back and forth between effect and no effect. Unfortunately, that gets me this problem - the effect is being turned off basically right after being turn on (on the same frame), resulting in no effect change at all. If I switch the lines around, the effect changes... once. On subsequent loops it's turned on again right after being turned off.

    Any help would be welcome.

    Code:
    * ModPosMS( "ModFX 3: ModFusion eX", 0 ) >= BoomPoint( "BG" )
    + Lastms of BG < BoomPoint( "BG" )
    + BG: EffectOn is on
         BG : Set RGB coefficient to GetRGB(255, 255, 255)
         Boing : Set effect to "None"
         BG : Set EffectOn off
    
    * ModPosMS( "ModFX 3: ModFusion eX", 0 ) >= BoomPoint( "BG" )
    + Lastms of BG < BoomPoint( "BG" )
    + BG: EffectOn is off
         Boing : Set effect to "Keep Color"
         Boing : Set effect parameter "keep" to GetRGB(255, 255, 255)
         Boing : Set effect parameter "replace" to GetRGB(0, 255, 255)
         BG : Set RGB coefficient to GetRGB(96, 64, 180)
         BG : Set EffectOn on
    
    * Always
        BG : Set Lastms to ModPosMS( "ModFX 3: ModFusion eX", 0 )

  2. #2
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Volnaiskra's Avatar
    Join Date
    Jan 2014
    Location
    www.sprykegame.com
    Posts
    2,947
    Mentioned
    133 Post(s)
    Tagged
    0 Thread(s)
    Convert it to a parent/child event with a break:


Similar Threads

  1. Build Filed - Unable to resolve project target 'android-27'
    By Power2r in forum Android Export Module 2.5
    Replies: 1
    Last Post: 2nd August 2019, 03:23 AM
  2. Build error google-play-services_lib resolve to a path
    By Pios in forum Android Export Module 2.5
    Replies: 118
    Last Post: 23rd February 2017, 11:30 PM
  3. Do conditions resolve at different speeds?
    By Grim_Jester in forum Fusion 2.5
    Replies: 1
    Last Post: 15th February 2016, 09:02 PM
  4. Unable to resolve target 'android-10'
    By Rvbar in forum Android Export Module 2.5
    Replies: 4
    Last Post: 5th September 2015, 10:35 PM
  5. [solved]Build Error "Unable to resolve project target 'android-18'"
    By Jonas in forum Android Export Module 2.5
    Replies: 0
    Last Post: 30th November 2014, 10:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •