Unconnected's Forum Posts

  • I have a large capx file. It has 11 event sheets. Each event sheet has groups and quite a few actions/conditions/functions on them.

    Sometimes I have trouble finding a Function so I can change it or look at it.

    It would be nice to be able to right click on the event calling the function to locate the Function.

    I realize using 'find' can be a solution but it only works in single event sheets and not across them all.

    A way to use 'find' across event sheets would be nice.

    Does anybody else think this would be useful?

  • I think

    loopindex("nameofloop")

    Is simple and is needed by C2.

    It prevents mix ups of other things.

  • I know this is an old post.

    I was looking for this, I had the same question.

    I typed out my questions and everything, I even posted them.

    I then I realized the solution, so I edited this to give it.

    You have to reverse the play speed of the animation.

    I have my speed set to a Variable.

    So when I need to reverse an animation I did this.

    Set animation speed to -abs(SpeedVariable)

    abs is "Absolute Value". It is a mathematical expression.

    What it does is turn negative numbers positive.

    So if you have a declining slope like this:

    3, 2, 1, 0, -1, -2, -3

    Using abs() will give you:

    3, 2, 1, 0, 1, 2, 3

    By putting a "-" in front of abs() it makes every number negative, like this:

    -3, -2, -1, 0, -1, -2, -3

    Therefore it reverses the animation speed.

    You can then use Conditions

    "Compare frame", "Compare speed", and "Is playing" to do what you need.

    * Zero will always be 0. Zero can't be negative nor positive*

  • When installing it into the "Program Files\Construct 2\exporters\html5\Plugins" folder you have to move the contents of the "src" back one file in the file tree.

    In other words you have to take the contents of "Src" out of the "Src" folder and place it where the "Src" folder is.

    It took me a small bit to figure that out.

    Works great too, Thanks again.

  • Nice job bending, bender!

  • Nice work Bender!

  • I know it truly isn't random if it is weighted, I just don't know how else to ask it.

    Is there an easy way to do a weighted random between two values?

    I have two values and am picking random numbers between them.

    Is there a way to have middle numbers be selected more often lower/higher numbers.

    (A Triangle on a scatter chart)

    If not then is there a way to have higher numbers picked more commonly then lower and vise versa?

    ( An increasing slope or a decreasing slope on a scatter chart)

    I assume this would have to be done with percent some how.

    I would like a formula rather than using a ton of conditions, but I will take what is best.

  • Great Game

  • Wow, okay I didn't know that. That seems useful

  • I thought 'Time Scale' effected everything using DT. Wouldn't that just set 'Time Scale' to 1 for everything, causing the game to unpause?

    If that is true then wouldn't I just not use DT for inventory?

  • I have a pause button that sets 'Time Scale' to 0

    I am wanting the players inventory to come up when the game is paused.

    Is it possible to still use items when 'Time Scale' is set to 0 or do I have to restructure and use 'Delta Time' to pause the game?

  • I see you marked out the Else statement. I had trouble figuring out why the Line of Sight range was being ignored. I marked it out on the first example.

    I feel I have to explain a small bit. It is more of an hierarchy. Higher rank will go after lower rank. It is similar to a food chain.

    Thanks again. I think 2 families would make more sense. I don't really see a problem with only using 1 though, but am not 100% sure. If anything it will be easier to work with, calling two things by one thing when they are two things can get confusing.

  • I only have 1 family. The objects in the family goes after other objects in the same family. Will that cause any issues? I don't think it would but am not 100% sure.

    Should I have 2 duplicate families?

    Yours is actually cleaner. Mine was a mess from trying to figure it out.

    Thanks for taking the time and helping.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post

  • How do I export array to Json?

    It seems like I can open a Json file using a browser, but I'm not sure how to export an Array.

    Do I need another software?