GameMaker (2.3)
Icon

TweenGMX

Stephen Loney

You must be logged in to obtain assets

Description

WARNING: This is a beta. Documentation is incomplete and the codebase is not guaranteed to be stable. Use at your own risk.

You can find some of the new features discussed in this video.

=======

TweenGMX is the next generation of tweening, succeeding TweenGMS, by taking advantage of new features available in the latest versions of GameMaker.

Built upon many years of development, TweenGMX is both flexible and easy-to-use, offering essential and advanced features powered by an optimised codebase.

Boost the look of your games by easily tweening movement, rotation, scale, and MUCH more!

Not familiar with tweening? See this video.

You can also check out:

Interactive Demo

Video Tutorials

Online Script Reference

[Features]

  • Fire-and-forget tweening
  • Step(frame) and seconds(delta) timing
  • Time scale control (global, group, tween)
  • Play modes (once,bounce,patrol,loop,repeat)
  • State control (pause,resume,stop,finish,reverse)
  • Automatic memory and persistence management
  • Supports animation curves as custom ease types
  • Advanced callback system
  • Custom variable easing
  • Path resource tweening
  • Data structure support
  • Delayed tweens
  • Control groups
  • Heavily optimised
  • Supports all platforms
  • And more...

[Code Example]

// EASE POSITION TO MOUSE x/y POSITION OVER 3 SECONDS
t = TweenFire(self, "ioSine", "once", true, 0.0, 3.0, "x>", mouse_x, "y>", mouse_y);

// ADVANCED "OFF-RAIL" TWEEN -- EASE image_angle TO 180 OVER 2 SECONDS
TweenFire("~io", "$2.0", "image_angle>", 180);

// ADD EVENT CALLBACK
TweenAddCallback(t, "finish", self, Show_Text, "Done!");

// SET TWEEN STATE
TweenPause(t);
TweenResume(t)
TweenStop(t);

// EASY TWEENS
TweenEasyMove(x, y, mouse_x, mouse_y, 0, 30, EaseOutQuad);
TweenEasyScale(1, 2, 0, 60, EaseOutElastic);

Follow @TweenGMX on Twitter for updates!

Proverbs 3:5-6

End User Licence Agreement (EULA).

Age Rating: 4+

Version

GMS2.3 - Version 0.13.0. Published June 24, 2022

  • Updated code to support GameMaker's runtime change for 'id'
  • Fixed function definition for TweenPlay() not showing ease parameter
  • Fixed mangling of implied struct targets for tweens and callbacks
  • Fixed TweenCreate() not assigning target for "off-rail" calls when target not explicitly set
  • TweenCreate() optionally no longer requires any arguments
  • Fixed tween target selection not working for multiple instances when checking against object index
  • Changed system enums to macros to avoid naming conflicts
Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait