Description

TweenDreams is a large collection of scripts that will allow you to easily add tweens and easing functions to your games.

Try The Demo Application for Windows here.

Features

  • Modeled after the style of GML functions
  • Pre-built one-shot set-it-and-forget-it functions for movement, scaling, rotation, color blend, alpha blend, path playback, and direction shifts
  • Pre-built one-shot set-it-and-forget-it functions to handle tweening any variable including colors
  • Frame based timing, millisecond based timing, and frame-rate adjusted frame based timing
  • Flexible event triggering on tween completion
  • Simple to use randomized delay
  • Multiple options for pausing
  • A lerp() style function that can interpolate values using the easing equations called twerp()
  • 40 different easing equations, including in, out, in - out, and out - in equations
  • Functions to access and modify tween variables as they are running
  • Organized to simplify removing unused scripts

Summary

The core of this extension is a collection of easing equations. These equations perform non-linear interpolations that produce a variety of curves. The remaining scripts are wrapper functions to cover many of the common uses for easing.

Animation

Using an easing function for animation is often called tweening. The Built-In Variable tween functions will handle many animations such as movement, scaling, and rotation. The Custom Variable tween functions can be used to handle more complex tasks such as changing variables used in advanced draw functions.

twerp()

There are many other uses for easing functions that do not need to update every frame. The twerp() function can be used like lerp() to interpolate between two values. This can be used in RPG stat systems, scaling damage calculations, scaling motion trails, and in many other situations.

End User Licence Agreement (EULA).

Version 1.0.4. Published September 14, 2015

Created with GameMaker: Studio v1.4.1629

Age Rating: 4+

Average Rating

This asset hasn't received enough reviews yet.

Your review

You can only review assets you've bought.

No reviews yet

No reviews have been left for this asset - be the first!

Package contents

Total size 786 KB

TweenDreams.extension.gmx 24.7 KB TweenDreams
Assets
datafiles Scripts
ease_quadratic_in.gml 13.8 KB ext_tween_auto_step.gml 578 Bytes ext_tween_custom_find_index.gml 310 Bytes ext_tween_ease.gml 754 Bytes ext_tween_end_check.gml 374 Bytes ext_tween_get_begin.gml 188 Bytes ext_tween_get_duration.gml 190 Bytes ext_tween_get_end.gml 184 Bytes ext_tween_get_event.gml 312 Bytes ext_tween_get_position.gml 264 Bytes ext_tween_get_time.gml 186 Bytes ext_tween_get_type.gml 186 Bytes ext_tween_pause.gml 348 Bytes ext_tween_resume.gml 306 Bytes ext_tween_running.gml 225 Bytes ext_tween_set_begin.gml 197 Bytes ext_tween_set_duration.gml 204 Bytes ext_tween_set_end.gml 195 Bytes ext_tween_set_event.gml 344 Bytes ext_tween_set_position.gml 381 Bytes ext_tween_set_time.gml 196 Bytes ext_tween_set_type.gml 196 Bytes ext_tween_start.gml 964 Bytes ext_tween_state.gml 423 Bytes ext_tween_stop.gml 584 Bytes tween_builtin_cleanup.gml 411 Bytes tween_builtin_init.gml 1.01 KB tween_builtin_step.gml 4.17 KB tween_custom.gml 1.6 KB tween_custom_cleanup.gml 67 Bytes tween_custom_get_begin.gml 207 Bytes tween_custom_get_duration.gml 210 Bytes tween_custom_get_end.gml 205 Bytes tween_custom_get_event.gml 307 Bytes tween_custom_get_position.gml 241 Bytes tween_custom_get_time.gml 206 Bytes tween_custom_get_type.gml 206 Bytes tween_custom_init.gml 420 Bytes tween_custom_pause.gml 234 Bytes tween_custom_pause_all.gml 245 Bytes tween_custom_resume.gml 234 Bytes tween_custom_resume_all.gml 244 Bytes tween_custom_set_begin.gml 191 Bytes tween_custom_set_duration.gml 194 Bytes tween_custom_set_end.gml 189 Bytes tween_custom_set_event.gml 268 Bytes tween_custom_set_position.gml 238 Bytes tween_custom_set_time.gml 190 Bytes tween_custom_set_type.gml 190 Bytes tween_custom_state.gml 599 Bytes tween_custom_step.gml 1.59 KB tween_custom_step_color.gml 1.58 KB tween_custom_stop.gml 524 Bytes tween_custom_stop_all.gml 216 Bytes tween_direction.gml 310 Bytes tween_direction_get_begin.gml 113 Bytes tween_direction_get_duration.gml 113 Bytes tween_direction_get_end.gml 104 Bytes tween_direction_get_event.gml 188 Bytes tween_direction_get_position.gml 81 Bytes tween_direction_get_time.gml 106 Bytes tween_direction_get_type.gml 93 Bytes tween_direction_pause.gml 131 Bytes tween_direction_resume.gml 72 Bytes tween_direction_set_begin.gml 83 Bytes tween_direction_set_duration.gml 89 Bytes tween_direction_set_end.gml 79 Bytes tween_direction_set_event.gml 132 Bytes tween_direction_set_position.gml 92 Bytes tween_direction_set_time.gml 81 Bytes tween_direction_set_type.gml 80 Bytes tween_direction_state.gml 139 Bytes tween_direction_stop.gml 118 Bytes tween_get_elastic_amplitude.gml 229 Bytes tween_get_elastic_period_fraction.gml 328 Bytes tween_image_alpha.gml 312 Bytes tween_image_alpha_get_begin.gml 115 Bytes tween_image_alpha_get_duration.gml 115 Bytes tween_image_alpha_get_end.gml 106 Bytes tween_image_alpha_get_event.gml 190 Bytes tween_image_alpha_get_position.gml 83 Bytes tween_image_alpha_get_time.gml 108 Bytes tween_image_alpha_get_type.gml 95 Bytes tween_image_alpha_pause.gml 133 Bytes tween_image_alpha_resume.gml 74 Bytes tween_image_alpha_set_begin.gml 85 Bytes tween_image_alpha_set_duration.gml 91 Bytes tween_image_alpha_set_end.gml 81 Bytes tween_image_alpha_set_event.gml 134 Bytes tween_image_alpha_set_position.gml 94 Bytes tween_image_alpha_set_time.gml 83 Bytes tween_image_alpha_set_type.gml 82 Bytes tween_image_alpha_state.gml 141 Bytes tween_image_alpha_stop.gml 120 Bytes tween_image_angle.gml 312 Bytes tween_image_angle_get_begin.gml 115 Bytes tween_image_angle_get_duration.gml 115 Bytes tween_image_angle_get_end.gml 106 Bytes tween_image_angle_get_event.gml 190 Bytes tween_image_angle_get_position.gml 83 Bytes tween_image_angle_get_time.gml 108 Bytes tween_image_angle_get_type.gml 95 Bytes tween_image_angle_pause.gml 133 Bytes tween_image_angle_resume.gml 74 Bytes tween_image_angle_set_begin.gml 85 Bytes tween_image_angle_set_duration.gml 91 Bytes tween_image_angle_set_end.gml 81 Bytes tween_image_angle_set_event.gml 134 Bytes tween_image_angle_set_position.gml 94 Bytes tween_image_angle_set_time.gml 83 Bytes tween_image_angle_set_type.gml 82 Bytes tween_image_angle_state.gml 141 Bytes tween_image_angle_stop.gml 120 Bytes tween_image_blend.gml 312 Bytes tween_image_blend_get_begin.gml 115 Bytes tween_image_blend_get_duration.gml 115 Bytes tween_image_blend_get_end.gml 106 Bytes tween_image_blend_get_event.gml 190 Bytes tween_image_blend_get_position.gml 83 Bytes tween_image_blend_get_time.gml 108 Bytes tween_image_blend_get_type.gml 95 Bytes tween_image_blend_pause.gml 133 Bytes tween_image_blend_resume.gml 74 Bytes tween_image_blend_set_begin.gml 85 Bytes tween_image_blend_set_duration.gml 91 Bytes tween_image_blend_set_end.gml 81 Bytes tween_image_blend_set_event.gml 134 Bytes tween_image_blend_set_position.gml 94 Bytes tween_image_blend_set_time.gml 83 Bytes tween_image_blend_set_type.gml 82 Bytes tween_image_blend_state.gml 141 Bytes tween_image_blend_stop.gml 120 Bytes tween_image_scale.gml 1012 Bytes tween_image_scale_get_event.gml 190 Bytes tween_image_scale_pause.gml 154 Bytes tween_image_scale_resume.gml 96 Bytes tween_image_scale_set_duration.gml 141 Bytes tween_image_scale_set_event.gml 134 Bytes tween_image_scale_set_position.gml 144 Bytes tween_image_scale_set_time.gml 129 Bytes tween_image_scale_state.gml 207 Bytes tween_image_scale_stop.gml 135 Bytes tween_image_xscale.gml 313 Bytes tween_image_xscale_get_begin.gml 116 Bytes tween_image_xscale_get_duration.gml 116 Bytes tween_image_xscale_get_end.gml 107 Bytes tween_image_xscale_get_event.gml 191 Bytes tween_image_xscale_get_position.gml 84 Bytes tween_image_xscale_get_time.gml 109 Bytes tween_image_xscale_get_type.gml 96 Bytes tween_image_xscale_pause.gml 136 Bytes tween_image_xscale_resume.gml 75 Bytes tween_image_xscale_set_begin.gml 86 Bytes tween_image_xscale_set_duration.gml 92 Bytes tween_image_xscale_set_end.gml 82 Bytes tween_image_xscale_set_event.gml 135 Bytes tween_image_xscale_set_position.gml 95 Bytes tween_image_xscale_set_time.gml 84 Bytes tween_image_xscale_set_type.gml 83 Bytes tween_image_xscale_state.gml 142 Bytes tween_image_xscale_stop.gml 121 Bytes tween_image_yscale.gml 313 Bytes tween_image_yscale_get_begin.gml 116 Bytes tween_image_yscale_get_duration.gml 116 Bytes tween_image_yscale_get_end.gml 107 Bytes tween_image_yscale_get_event.gml 191 Bytes tween_image_yscale_get_position.gml 84 Bytes tween_image_yscale_get_time.gml 109 Bytes tween_image_yscale_get_type.gml 96 Bytes tween_image_yscale_pause.gml 136 Bytes tween_image_yscale_resume.gml 75 Bytes tween_image_yscale_set_begin.gml 86 Bytes tween_image_yscale_set_duration.gml 92 Bytes tween_image_yscale_set_end.gml 82 Bytes tween_image_yscale_set_event.gml 135 Bytes tween_image_yscale_set_position.gml 95 Bytes tween_image_yscale_set_time.gml 84 Bytes tween_image_yscale_set_type.gml 83 Bytes tween_image_yscale_state.gml 142 Bytes tween_image_yscale_stop.gml 121 Bytes tween_instance_pause_all.gml 243 Bytes tween_instance_resume_all.gml 224 Bytes tween_instance_stop_all.gml 325 Bytes tween_path_position.gml 316 Bytes tween_path_position_get_begin.gml 117 Bytes tween_path_position_get_duration.gml 117 Bytes tween_path_position_get_end.gml 108 Bytes tween_path_position_get_event.gml 192 Bytes tween_path_position_get_position.gml 85 Bytes tween_path_position_get_time.gml 110 Bytes tween_path_position_get_type.gml 97 Bytes tween_path_position_pause.gml 137 Bytes tween_path_position_resume.gml 76 Bytes tween_path_position_set_begin.gml 87 Bytes tween_path_position_set_duration.gml 93 Bytes tween_path_position_set_end.gml 83 Bytes tween_path_position_set_event.gml 136 Bytes tween_path_position_set_position.gml 96 Bytes tween_path_position_set_time.gml 85 Bytes tween_path_position_set_type.gml 84 Bytes tween_path_position_state.gml 143 Bytes tween_path_position_stop.gml 122 Bytes tween_set_elastic_amplitude.gml 239 Bytes tween_set_elastic_period_fraction.gml 338 Bytes tween_x.gml 294 Bytes tween_xy.gml 960 Bytes tween_xy_get_event.gml 181 Bytes tween_xy_pause.gml 147 Bytes tween_xy_resume.gml 87 Bytes tween_xy_set_duration.gml 132 Bytes tween_xy_set_event.gml 125 Bytes tween_xy_set_position.gml 135 Bytes tween_xy_set_time.gml 120 Bytes tween_xy_state.gml 198 Bytes tween_xy_stop.gml 124 Bytes tween_x_get_begin.gml 105 Bytes tween_x_get_duration.gml 105 Bytes tween_x_get_end.gml 96 Bytes tween_x_get_event.gml 180 Bytes tween_x_get_position.gml 73 Bytes tween_x_get_time.gml 98 Bytes tween_x_get_type.gml 85 Bytes tween_x_pause.gml 125 Bytes tween_x_resume.gml 64 Bytes tween_x_set_begin.gml 75 Bytes tween_x_set_duration.gml 81 Bytes tween_x_set_end.gml 71 Bytes tween_x_set_event.gml 124 Bytes tween_x_set_position.gml 84 Bytes tween_x_set_time.gml 73 Bytes tween_x_set_type.gml 72 Bytes tween_x_state.gml 131 Bytes tween_x_stop.gml 111 Bytes tween_y.gml 302 Bytes tween_y_get_begin.gml 105 Bytes tween_y_get_duration.gml 105 Bytes tween_y_get_end.gml 96 Bytes tween_y_get_event.gml 180 Bytes tween_y_get_position.gml 73 Bytes tween_y_get_time.gml 98 Bytes tween_y_get_type.gml 85 Bytes tween_y_pause.gml 125 Bytes tween_y_resume.gml 64 Bytes tween_y_set_begin.gml 75 Bytes tween_y_set_duration.gml 81 Bytes tween_y_set_end.gml 71 Bytes tween_y_set_event.gml 124 Bytes tween_y_set_position.gml 84 Bytes tween_y_set_time.gml 73 Bytes tween_y_set_type.gml 72 Bytes tween_y_state.gml 131 Bytes tween_y_stop.gml 110 Bytes twerp.gml 401 Bytes twerp_color.gml 484 Bytes

What is the issue?

Back to Top