CinderFlurry's Forum Posts

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

  • I have a system event that "Set Scroll X" to "Bunny". Only issue is, there's multiple "Bunny" on the map. How do I set the scroll to a specific "Bunny"? I figure there's a way to specify UID, but if there's any other way, I'd be grateful

    Thanks in advance.

  • Switch em off. Like a light switch ?

    https://www.dropbox.com/s/0kuoyak81m6bq ... .capx?dl=0

    Your Capx is saved in a Beta version of Construct 2, I'll stick to the stable version for now ^-^

    Thanks for the help anyway though.

    I'm still looking for an answer if someone has it!

  • Just Use Self.Y to leave Y alone.

    Thank you very much

  • I have a behavior plugin. (At least I think it is), it's called MoveTo.

    This behavior allows you to move an object to an X/Y.

    Unfortunately, there's no singular "Move to X" or "Move to Y", it's only "Move to X/Y"

    I'm wondering if there's a specific command which will allow the Y value to stay as it is already?

    Say for example, I want to move two objects to the same pixel height.

    I could do 200, 0. But then it'd move both objects to X = 0, which isn't at all what I want. So, instead of writing '0', is there something I can write instead that says 'Don't worry about this one" ?

    I hope I made sense. Sorry if I got X and Y mixed up lol.

  • Worked perfectly, thank you very much.

    Everything is pretty self-explanatory minus the BboxLeft/Right/Top/Bottom thing. What do these refer to? Seems handy.

    EDIT: I see you've responded, thank you very much! Very good explanation, thank you

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sweet, thanks for the advice! I'll give it a shot.

    May I ask if you can further explain what exactly it does, for newbies? You won't learn anything if you're just given the straight answer ^-^