Posted December 02, 2020 by Stephen Loney
#gamemaker #studio #gamemaker studio 2 #gml
TweenGMS v2.0 Beta 3 is now available for download.
It adds various bug fixes and a couple of new features as listed below...
[Changes since Beta 2] -Improved general stability -Greatly improved YYC compile time -Fixed "image_blend" property causing error -Fixed "@" and [100] start/dest support for struct properties -Fixed TweenPlay() failing when using "ease" strings or Curve* -Fixed TweenPlay() not supporting 0, -1, -2 tween id indexing -Updated TweenExists() to support struct targets -Added fix to prevent invalid duration values -Fixed issue with TP*() failing with to/from ">"/"<" strings TweenFire("$60", TPList("myList>", 0), 100); -Added TGMS_StringEase() for setting custom ease/curve strings TGMS_StringEase("smooth", SomeEaseFunction); TGMS_StringEase("butter", SomeCurve, someChannel); TweenFire("$60", "~smooth", ...) TweenFire("$60", "~butter", ...) -Functions can now be executed as properties... function Spark(value,target,args) { var _t = target; if (args == undefined){ effect_create_above(ef_spark, _t.x, _t.y, 1, c_white*value); } else{ effect_create_above(ef_spark, _t.x, _t.y 1, args); } } // Pass function with no arguments TweenFire(id, "io", 2, 1, 0, 1, "x>", 100, [Spark], 0, 1); // Pass function with argument 'c_green' TweenFire(id, "io", 2, 1, 0, 1, "x>", 100, [Spark, c_green], 0, 1);