CinderFlurry's Forum Posts

  • Bump!

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • '|' = '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!

  • I understand that it's still one event if I use an 'Or' block, in fact I've already stated that. It all takes up so much space if I use an 'Or' block. Essentially what I want is something that doesn't take so much space. That's why I'm asking for an expression. Is there one or isn't there? That's my question.

  • Asmodean showed me a way to check if a variable's number is in between two other values. I'm wondering if instead of:

    System: if Variable = 1

    System: if Variable = 2

    System: if Variable = 3

    System: if Variable = 4

    there's some other way of cramming it into one event, for example:

    System: if Variable = 1, 2, 3, and 4

    Is there no expression for this? By expression I mean the stuff like ceil(1, 2, 3, 4)

  • Sorry to bring this up again! Is there an expression that goes along the lines of "If *globalvariable* is equal to 1, 2, 3, 4 then..." ?

    To further explain I want an expression that allows me to cram all the numbers I'm checking if equal to into one event, rather than doing 4 different events for each number on an Or block.