CinderFlurry's Recent Forum Activity

  • Bump!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Whoops! Sorry for the late response.

    The only issue with that solution is that I'd have to apply the Warp Ripple effect to every single sprite which I feel is going overboard. Do you know of another way by chance?

  • use Timer behavior

    Thank you so much, told me exactly what I needed! Wonderful demonstration too ^-^ Works perfectly.

  • I'm having a problem and I can't figure it out. I have an event set up so that 'For Each Bunny' - 'every - random(1, 2) seconds' a bunny will jump.

    The problem is, only one bunny out of the 4 on screen will jump. They're all the same sprites, all their stats are the same, nothing is different. Yet this event only seems to influence one of them!

    Here are the events:

    System - For Each Bunny

    Every - random(1,2)seconds / Bunny Simulate Platform pressing jump.

    That's all there is. Only one bunny will jump and I have no idea why.

    If I do;

    Every - random(1,2)seconds

    System - For Each Bunny / Bunny Simulate Platform pressing jump

    It will make all the bunnies jump at the same time and I don't want that. I want them to jump at random intervals, not at the same time.

    Thanks in advance, hopefully I made sense.

  • Thanks! I assume you're talking about the Compare Two Values event. The first option works perfectly, thank you.

  • Let's say I have 60 bunnies on the screen, each colored white.

    But then I click a button labeled "May turn a bunny blue". 'May' means could, so there's a chance a bunny could turn blue if I press that button.

    How do I say that I want an event to have a 50% chance of occurring?

    I'm not sure why all my questions involve bunnies, hopefully I made sense though.

  • Thanks! It really should say that instead of 'return' imo. Problem solved.

  • I can't seem to wrap my head around what 'They return 1 if the comparison is true or 0 if false.' means. Can you please elaborate for me? I'm referring to the article.

  • > Compare two values var=1|var=2|var=3|var=4 is equal to 1

    > .

    >

    Second value- 0(false); 1(true)

    It works, but I'd still like flameneon to help me out with the problem I was having if they get the chance

    Also, I don't really understand how this all works anyway, what exactly is happening? Can you please explain?

  • That's not what I want. As far as I know, that chooses randomly between each number.

  • '|' = 'or'. So, if you want check if variable equals 1,5 or 8, just write

    + System -> if Variable1 = 1 | 5 | 8|...

    It doesn't seem to understand what numbers I'm talking about.

    System -> if Variable = '1 | 5 | 8' doesn't work

    I've confirmed it's an issue with the code not understanding what numbers I'm talking about.

    For example, if I set a bunch of bouncy balls to spawn if the variable doesn't equal '1 | 5 | 8', and then set the variable to either 1, 5 or 8, the balls still won't stop spawning. If that makes sense. Point is, it doesn't understand the number.

  • '|' = 'or'. So, if you want check if variable equals 1,5 or 8, just write

    + System -> if Variable1 = 1 | 5 | 8|...

    Thank you, will try that now. I appreciate the help!

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