Kurajber's Forum Posts

  • Well, this is how I solved it for the time being.

    for loop from 0 to 10:

    10 - 0 = 10

    10 - 1 = 9

    10 - 2 = 8

    10 - 3 = 7

    10 - 4 = 6

    and so on...

  • I'm trying to do a 'for loop' with start index 10 and end index 0 and it doesn't seem to work. I'm suspecting it's only made for the index to increase, is this correct? If it is, I'm sorry to say it sucks. <img src="smileys/smiley5.gif" border="0" align="middle" /> <img src="smileys/smiley7.gif" border="0" align="middle" />

  • Those of you who are familiar with Flash will know what I'm talking about. Is there a way to mask an object in C2 like in Flash or any other substitute that could provide me the same effect?

  • Let's say I have some pipe objects connected to one another. The first pipe starts an animation of water flowing through it and when the animation finishes, it freezes at the last frame and sends a "message" to the next pipe to start playing the same animation, so that I get a nice effect of water flowing through all the pipes. The standard time-dependent 'wait' event isn't the answer here, obviously. So my question is: How to set 'a wait' for an animation to finish playing? I tried several ways, but none of them worked.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thndr

    Indeed it does. <img src="smileys/smiley3.gif" border="0" align="middle" /> I've seen the event before and I know instances are picked 'automatically' when they are affected by an event, but somehow I didn't assume it was valid for that particular event as well. Don't blame me, I'm new to C2. <img src="smileys/smiley10.gif" border="0" align="middle" />

    Thank you all for your answers.

  • I've got an idea I'd like to share and suggest to Ashley for a new event in some future C2 update - "pick instance by variable value". Let's say I've got a sprite and I assign a variable 'name' to it, or maybe assign some more variables which will hold some other instance properties (coordinates, size, Z-order, array index reference etc.) It'd be very nice if I could pick an instance by one of those custom properties, for example "pick by name 'enemy01_05'", which would be very handy. I realize this can be done with a 'for each' loop, but I think it'd be nicer to have it wrapped in a single event.

  • Is the C2 crew considering to add a Regular Expressions plugin or anything like that? I use Regex a lot in game development with Flash and Unity, especially for puzzle games. Even Multimedia Fusion 2 has such a plugin and I consider MMF2 to be obsolete since the existence of C2. I would be very happy to see Regex in C2 as well.

  • Does anyone have the updated version of the plugin that 'boolean' did? The link he provided is broken.

  • Seems like I've been using a slightly outdated version, I just read this:

    "Please note the following breaking changes since r126:

    In some rare cases, pick by UID can act differently. This should be easily resolved by adding a 'for each' loop above the condition."

    I updated to r132, the bug seems to have been fixed. Now it works great without any change in the code (I didn't even add a "for each" loop). Thank you both for your answers and sorry for alerting you for an outdated bug.

  • Yeah, I tried that, the problem persists.

  • I call the function with 4 parameters and it's the 2nd parameter I'm retrieving to pick an instance, so yes - Param(1) is the correct one. I've checked and confirmed that the parameter is retrieved correctly, the "picking part" is somehow being ignored.

  • Just to keep it clean, the issue is that "pick by UID" doesn't work even thought the instance that's supposed to be picked does exist and is valid.

  • Sorry for the "MyFunction"/"Highlight block" mismatch, I updated the screenshots, but they were only misleading from the real issue, I assure you it is just a pre/after-rename thing (the initial name of the function was "highlight block", then I renamed it to "MyFunction" for the purpose of this topic, made the first 2 screenshots, renamed it back to "highlight block" and made the last screenshot afterwards). The issue still stands, I am sure there's an instance with UID 14 and yet the "pick by UID" event still doesn't work.

  • Hi everybody.

    I wasn't sure where to start this topic, so I apologize if I'm not at the right spot.

    I ran to a strange issue with the "Pick by unique ID" event. This is how it looks:

    <img src="https://dl.dropboxusercontent.com/u/64371704/POTREBI/c2.png" border="0" />

    The problem is that the "Chrome log" action is being ignored as if the "pick instance" event never occurs. It works fine if I do it this way:

    <img src="https://dl.dropboxusercontent.com/u/64371704/POTREBI/c3.png" border="0" />

    Which confirms that the instance I want to be picked is valid and therefore the event is valid, and yet the event still doesn't work.

    I also tried this way for the sake of testing:

    <img src="https://dl.dropboxusercontent.com/u/64371704/POTREBI/c4.png" border="0" />

    And I get this warning in the Chrome console:

    <img src="https://dl.dropboxusercontent.com/u/64371704/POTREBI/c5.png" border="0" />