dop2000's Forum Posts

  • Try updating video drivers, rebooting.

  • Use these:

    int(ColorPicker.R)/2.55

    int(ColorPicker.G)/2.55

    int(ColorPicker.B)/2.55

    I can't explain why, but it should work :)

  • Sorry, I can't help you with JS, but it's very easy to do with events.

    Add FileChooser and AJAX objects, and this event:

    .

    You can also use NWJS action "Show open dialog" and NWjs.ReadFile(path) expression.

  • Are these 200 objects all fading at the same time?

    I don't think there is a simple way to do this Fade behavior. I would suggest adding all these objects to a family and adding LiteTween behavior on the family. You will still need to change the events manually, of course..

  • I believe Set Color effect takes values 0-100, so you need to divide R,G,B values from Color Picker by 2.55

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You know, at some point you're going to need to write a demo for how to add credits to a game

    :)

    You can manually place the camera sprite above the player on each layout. Or add this action:

    On start of layout -> Camera set position to Player.x, Player.y-250

  • You need to rename the animations in B1Who2 sprite. For example, where the puppy is playing with the butterflies, the animation should be "PuppyButterflies".

    Other small issues - on "the brown puppy" text, fix the value in the Who variable, it says "Pupply". And you have two copies of B1When2 sprite for some reason.

  • Web font takes some time to load (about 1 second at most). I don't know why you need to refresh the layout though.

    What I did in my game - I placed a text object with just a dot "." on the Loader layout and hid it behind the logo sprite. So when the loader layout starts it load the webfont for this text. And then, when my next layout starts, the webfont is already cached and appears immediately.

  • Well, you can't just copy-paste my code into your project and expect it to work.. First, you need to load the JSON data into the array. And in your array player position is at index 2.

  • I may be wrong, but I think you can simply configure "Privacy Policy" and "Location to show user consent dialog" settings on the Mobile ADs plugin, and that's it. The dialog will be automatically shown to users from the EU, and if they don't give their consent, they will be served non-personalized ads.

  • Ok, forget about ternary operator. With the goalkeeper, 3-4-3 formation:

    For "n"=0 to 10
    
     If loopindex=0 : Array set "GK" at X=loopindex, Y=..
    
     Else If loopindex<4 : Array set "DF" at X=loopindex, Y=..
    
     Else If loopindex<8 : Array set "MD" at X=loopindex, Y=..
    
     Else : Array set "AT" at X=loopindex, Y=..
    
    
  • You are probably overwriting the name, check your code.

    3-4-3 is first 3 players are "DF", next 4 players are "MD", and next 3 players are "AT", right?

    So if you are looping from index 0 to 9, loopindex<3 are "DF". You can use a short version of if-then-else for this, it's called ternary operator:

    loopindex<3 ? "DF" : "something else"

    And then nest another ternary operator inside:

    (loopindex<3 ? "DF" : (loopindex<7 ? "MD" : "AT"))

  • Just change the expression. For 3-4-3 it will be (loopindex<3?"DF":loopindex<7?"MD":"AT")

    Or you can do it the long way with several sub-events:

    If loopindex<3 : Array set... "DF"
    Else If loopindex<7 : Array set... "MD"
    Else : Array set... "MD"
    
  • Check out the "Blend modes" template in C3. You can put the color wheel and the mask sprite on a separate layer, set "Force own texture=yes" and they will not affect other layers.