DiegoM's Recent Forum Activity

  • I see, I misunderstood what you were trying to do.

    To use the RGB values as they appear in the animations editor you should use the rgbEx255 expression or the rgba255 expression, these accept values in the 0-255 range.

    rgba and rgbEx accept values in the 0-1 range.

    If you are not interested in the alpha channel use the Ex variants, those only accept red, green and blue values.

  • Have you checked the luminosity slider at the bottom of the main color picker?

    If it's all the way to the left no matter what color you pick it will be black.

  • I think you are thinking about this the wrong way, because collisions won't take place in the middle of the loop, they either happen before or after, so you won't be able to stop the loop mid way.

    I think you want to do a few things:

    1. When a collision happens, stop all the tweens. This should stop all movement that is taking place.
    2. Check there is a collision before even starting the loop, if there is don't even start.

    It's very hard to figure out what is happening from looking at a screen shot, but I have a feeling that your continue variable doesn't have the value you want it to have, so every time the loop starts, new tweens are created.

    Just trying to help from glancing at the screen shot of your events, so don't take everything I write too seriously :)

  • Just realised what you are trying to do, I don't think that will ever work.

    If I understand correctly continue will be set to false when a tween finishes, but the for loop will always end before any of those tweens are completed.

    Perhaps it would be better for you to explain what you are trying to do before anyone can help.

  • It's hard to tell what is going on from the screenshot, what is setting the continue variable to false?

  • Try Construct 3

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

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

    Can you file the issue in our bug tracker? It's better to submit problems over there since we look at it pretty often. Reports in the forums are more likely to get lost under new messages.

    github.com/Scirra/Construct-bugs/issues

  • I thought it was, sorry about that. Then you should use the Is Between Values condition, which will do what you are describing. You just need to provide the value you are testing and the lower and upper bounds of the check.

    Add conditions for each range you want to check and you should be good.

  • It should be part of the System.

  • I would try using the Evaluate expression condition.

    In the value of the condition you can do something like:

    (your_variable > min_value) & (your_variable < max_value)
    

    That translates to your_variable GREATER THAN min_value AND your_variable LOWER THAN max_value. If that that is true then your_variable is within that range.

    If you want to test for different ranges you would have different condition and do different actions for each condition.

  • I haven't looked at that code in a while, but one thing I remember is that the numerical sorting isn't smart at all. If you explicitly specify it and a file name can't be converted into a number then it won't do it. That means that it won't infer 01 from Clipboard01, for instance. If you tell it to sort file names that it can't convert to numbers they will all end up having the same priority, so I think that's why using numerical sorting with the files named Clipboard## ends up doing something unexpected.

    Another thing I remember is that explicitly specifying numerical sorting ended up being redundant after some iterations of the feature. If "sort" is not specified at all it just tries to do alphabetical sorting, unless all the file names can be converted to numbers, then it will try to do numerical sorting. That is the sensible thing to do in most cases.

    Lastly there is "no-sort" which just adds the files in the order the browser sees them, which can be different to the order shown by an operating system.

    So to explain each case:

    1. orig - no sort: that is the order in which the files are seen by the browser, sometimes it's the same as the OS but it is not guaranteed.
    2. orig - numerical: the importer is trying to convert those file names to numbers, but it can't so the sorting doesn't work.
    3. orig - sorting removed: the importer defaults to alphabetical sorting and because the file names end with a 2 digit number starting with "0" the sorting works as expected. In this case, if the names didn't have the "0", the sorting wouldn't work because, as an example, in strings "11" comes before "2". Not very intuitive, but that's how it works.
    4. renamed - no sort: same as first case.
    5. renamed - numerical: all file names can be converted to numbers, so it works as expected.
    6. renamed - sorting removed: the importer sees that all file names can be converted to numbers, so it does numerical sorting and it works as expected.

    To sum it up, the best is to just create your files with a number as the file name. If you want to add a string part you need to make sure the number part of the name is 0 padded to make sure your get the correct sorting when it tries to do alphabetical sorting.

  • Can you make the file public?

  • Just to clarify, there currently is no scripting API to work with flowcharts.

DiegoM's avatar

DiegoM

Member since 24 Apr, 2015

Twitter
DiegoM has 1,531,614 followers

Trophy Case

  • 10-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

17/44
How to earn trophies

Blogs