Unconnected's Recent Forum Activity

  • It is a string, if it is a position tween you can use "700,200" in the target to tween to x=700, y=200. If you want to use variable let's say MyTargetX and MyTargetY, you can turn those two variable into string by entering

    MyTargetX & "," & MyTargetY

    into the target field.

    I am having trouble using a variable for Opacity and Angle, It works for Duration.

    With "80" it works correctly. When I make "80" a global or local variable (MaxOpacity/ MaxAngle) it ignores the variable and stays at the object's current opacity/angle for the whole tween.

    Anybody know a way around this? It is part of my game so I really need a variable to work.

  • Oh that is useful.

    I only needed 180, I will just use lerp.

    I figure if that isn't needed then anglelerp may just add more calculations.

    Thanks

  • anglelerp(a, b, x) Linearly interpolate the angle a to b by x. Unlike the standard lerp, this takes in to account the cyclical nature of angles.

    Can someone explain to me what angleLerp does different than Lerp would for angles?

    I am not fully understanding the point.

    I have an object that rotates to 180 when clicked on and back to 0 when clicked on again.

    I have lerp on one and anglelerp on the other and don't see a difference.

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

Unconnected's avatar

Unconnected

Member since 6 Apr, 2016

Twitter
Unconnected has 1 followers

Trophy Case

  • 8-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Coach One of your tutorials has over 1,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

12/44
How to earn trophies