CinderFlurry's Recent Forum Activity

  • > You can set effects on layouts, right? You don't have to go through all the layers you want to assign an effect to, you can just assign it to the layout itself.

    >

    > Is there a way to exclude a certain layer on the layout so the layout's effect doesn't affect it? Thanks in advance!

    >

    well no.. you have to do it for each layer ...however i see how this request could be in handy

    That's a shame. Maybe we'll see a feature like this in the future.

  • I don't think so...now stop being lazy and assign an effect to the layers you want : P

    Not being lazy, assigning an effect to 10+ layers and messing with their parameters through events all at once could take up a lot of juice. It's not lazy to want to maximize efficiency

  • You can set effects on layouts, right? You don't have to go through all the layers you want to assign an effect to, you can just assign it to the layout itself.

    Is there a way to exclude a certain layer on the layout so the layout's effect doesn't affect it? Thanks in advance!

  • Invert of 'is on screen" ....

    Is on screen

    ...no actions

    Else

    ... the actions

    Thanks, it's a little silly that we can't just invert it instead. I appreciate the help.

  • On X pressed, I want the menu to go back to the previous. But, I want to make sure there are no 'Bunny' sprites on the screen first for it to work.

    Inverting 'Is on-screen' doesn't work apparently, so my next thought was to use the 'Is on Layer' to check if it's currently on the layer or not. Is there a way to tell the system to check all the layers in one event rather than doing:

    'Is on Layer 0'

    'Is on Layer 1'

    'Is on Layer 2'

    'Is on Layer 3' etc.

    If you have any other solutions to my issue besides the 'Is on layer' event, I'd love to know!

    EDIT: This idea doesn't work anyway. Now I'd really love to know your other ideas :/

  • Agreed with Dam, took me a solid 30 minutes to figure out that it just doesn't work, please take out the ability to invert 'Is on screen'.

  • When you influence an object through events, Construst 2 will prioritize that specific object that you changed in any actions after that.

    So if I change the animation frame of a Sprite after grabbing it's UID, every other action after that will influence that specific sprite even if I want the next action to apply to each sprite.

    Is there a way to tell Construct to focus on all sprites rather than one through an action? Hope I made sense.

  • Scratch that, entirely my fault. I had a different way of randomizing them before and forgot to delete it. Apologies for wasting your time, thank you for your help!

  • Alright, I've changed everything to how you said, but frame 2 is still appearing way more often even though it's 0 and 3 now (3%)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Okay. Now it's:

    For Each Sprite

    ---- If value random(100) LB: 50 UB: 100 ---> Set frame to 0

    ---- If value random(100) LB: 2 UB: 50 ---> Set frame to 1

    ---- If value random(100) LB: 0 UB: 2 ---> Set frame to 2

    Except, for some reason despite frame 2 having only a 2% chance, it's the one that appears the most. I know it's completely random and there's a chance that it's landed on 0, 1, or 2 for random(100) each time, but that seems unlikely. Any ideas?

  • Let me add on to this, I didn't explain very well.

    I have a set of events that change a sprite's animation frame at the beginning of the layout.

    For this, I have set up:

    'For Each Sprite

    ---if 'random(100)

    ---< Less or equal

    ---50

    ------------------------------->Set Animation Frame 0

    ---if 'random(100)

    ---> Greater or equal

    ---51

    ------------------------------->Set Animation Frame 1

    ---if 'random(100)

    ---<Less or equal

    ---3

    ------------------------------->Set Animation Frame 2

    So, that's a 50% chance for 0, 50% chance for 1 and 3% chance for 2.

    Except that equals 103% and makes no sense. So, I need the 1st and 3rd events to be in between two values so the possible outcome of the random(100) number doesn't overlap. I hope that made sense.

  • Can you please explain how I can convert my earlier method using this?

CinderFlurry's avatar

CinderFlurry

Member since 16 Jul, 2015

None one is following CinderFlurry yet!

Trophy Case

  • 9-Year Club

Progress

9/44
How to earn trophies