CinderFlurry's Recent Forum Activity

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ah, right! Thank you, I didn't understand that's how it worked, and couldn't check because I was away from my PC at the time. I appreciate it.

  • It's for a global variable

  • Let's say I want to create spawn a small bunny if the variable is equal to 4, 5, 6 and 7.

    Instead of doing 4 different "If ___ variable is equal to _" events, is there a way to use just one event?

    I'm aware I can use "If ___ variable is greater than _", but what if there's an event that spawns a slightly bigger bunny if it's equal to 8? Greater than would do everything above the number, including 8.

    Hope I'm making sense. Essentially I need some sort of expression along the lines of between(3, 8) I'm not aware of any that exist.

  • Thanks a lot! That's exactly what I wanted. I appreciate it

  • I'm well aware of the expression 'angle(bulletname.X, bulletname.Y, target.X, target.Y)', that's what I'm using.

    Let's say I want to set the angle of the bullet towards a giant bunny. The expression would be: 'angle(bulletname.X, bulletname.Y, giantbunny.X, giantbunny.Y)

    The angle of the bullet would face towards the giant bunny, as it should. But what if I want to set the bullet's angle towards a specific part of the bunny, for example, a specific image point?

    Please don't comment additional ways to go about this, I only want to know if there's a way to target an image point using that expression. Thanks in advance!

  • Varies in this case means that you have a default value for the instance variable (likely "False") that you can check by selecting the Object Type that contains the variable directly in the Object Type folder of the project's bar and you have an instance of that object type which instance variable's value is set to "True", resulting in the fact that the defaulting value in turns "varies" in your edittime configuration.

    Just make sure to select the instance, the value set for the instance will stick to it, or at worst, in your event sheet, on start of layout, do some initialisation and set the instance boolean variable's value to True. All instances of your object type will have their instance variable value set to true, but it should do the trick.

    Legend! Works like a charm. I understand now, thanks Kyatric

  • I seem to be overlooking something.

    When I set a Boolean Variable to true and click OK, it automatically changes to '<varies>'. What does this mean? I want true!

    Thanks in advance

    EDIT: OH BTW it's an instance variable.

  • You can add an animation frame to your character for debugging purposes only. Just replace the character sprite on that frame with a circle with width/height of range*2. Similar idea if you want a cone.

    Is there really no other way to do it?

  • Probably not a very good question, but I'd like to know if it's possible for the dev to see the line of sight?

    For example, if I set the Line of Sight behavior on an object to a range of 500 and then set the cone to 60 degrees, is there any sort of way I can see a visualization of that in the editor?

    To be clear, I don't want the player to see it, only the dev (me) in the editor; the actual Construct 2 program.

    Thanks in advance!

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