[PLUGIN]Math-update 9/11(additional features)

This forum is currently in read-only mode.
From the Asset Store
Fantasy Game includes more than 600 sound effects inspired by hit computer games like World of Warcraft and Diablo.
  • I got one.

    How about an expression to tell if a number is prime?

    ... been reading on Toms post about tiling images using primes

  • This is shaping up nicely lucid! Even I did once an example that had to deal with line intersections. Now I don't have to use the math formula anymore, very handy! :)

  • small update.

    the anglelerp expression no longer has the limitation of needing to have two angles that are between 0 and 360, shouldn't have been there to begin with honestly <img src="smileys/smiley9.gif" border="0" align="middle" />

  • some vector math ops would be nice, like cross product, dot product, angle between vectors, 3d distance, all for 3d vectors obviously.

  • hi guys, big update. For those of you who could just never get the whole moving things with lerp thing, or for those who get sick of typing in the events, Math now has actions to autointerpolate over time. there are two different methods.

    the first is to create a value for interpolate, that you can retrieve from expressions.

    The second is to interpolate object positions,rotations,and dimensions automatically over a given time. like being able to order an object to a location. there are also triggered conditions for when interpolation completes, and actions to pause and resume interpolation. using the automated interpolated value actions and expressions, you could automate anything like pv's, opacity, and color.

    also, the interpolation allows you to set a speed curve control point anything from 0 to 1, 0 is ease in, 0.5 is linear, and 1 is ease out.

    hope it comes in handy, have fun!!!

  • Much appreciated. Thanks, lucid.

  • fixed a small bug in autointerpolation where it would stop one step short of completing movements. if you downloaded before I posted this. please redownload

    EDIT: and another small bug, redownload again, if you downloaded before this edit

  • edit: changed times of interp to milliseconds and fixed something else

    hi guys, big update. For those of you who could just never get the whole moving things with lerp thing, or for those who get sick of typing in the events, Math now has actions to autointerpolate over time. there are two different methods.

    the first is to create a value for interpolate, that you can retrieve from expressions.

    The second is to interpolate object positions,rotations,and dimensions automatically over a given time. like being able to order an object to a location. there are also triggered conditions for when interpolation completes, and actions to pause and resume interpolation. using the automated interpolated value actions and expressions, you could automate anything like pv's, opacity, and color.

    also, the interpolation allows you to set a speed curve control point anything from 0 to 1, 0 is ease in, 0.5 is linear, and 1 is ease out.

    hope it comes in handy, have fun!!!edited><editID>lucid</editID><editDate>2011-09-11 13:09:36</editDate></edited>

  • see previous post for yesterdays updates

    • added the ability to set the current value, of interpolated values, which will create the value if it doesn't exist.
    • you can now access values like this: math.yourvaluename and you have not yet created the value, it will return 0
    • if you do it like this: math.yourvaluename(somedefaultvalue) and you have not yet created the value, it will return your default value
    • added the ability to change the total time for the interpolation on the fly, as well as the time elapsed, and interpolation curve control point

    special thanks to Somebody and FrenchYann for suggestions and testing

    (latest update (9-11-11   10:30am:additional bug fixes)

  • I need angle lerp, plugin cannot be found.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Urled math.rar

  • Great! Thanks!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)