GD Resources logo

Miscellaneous #

OmgRod avatar
Written by:
OmgRod
Owner

Lua Trigger has some features that couldn't be properly categorised in these docs, so I made a page for all sorts of useful, smaller features you may want to learn about.

Easing Type #

Used in object manipulation, easing type is how you want something to navigate. In GD, there are 18 easing types (or 19 if you also count None):

Easing types
NameEnum Name (C++)Integer Value (Lua)
NoneNone0
Ease In-OutEaseInOut1
Ease InEaseIn2
Ease OutEaseOut3
Elastic In-OutElasticInOut4
Elastic InElasticIn5
Elastic OutElasticOut6
Bounce In-OutBounceInOut7
Bounce InBounceIn8
Bounce OutBounceOut9
Exponential In-OutExponentialInOut10
Exponential InExponentialIn11
Exponential OutExponentialOut12
Sine In-OutSineInOut13
Sine InSineIn14
Sine OutSineOut15
Back In-OutBackInOut16
Back InBackIn17
Back OutBackOut18

Easing Rate #

When using an Easing Type other than None (0), the Easing Rate controls the intensity or acceleration curve of the easing animation.

In Geometry Dash, the easing rate acts as a multiplier/exponent for the easing formula:

  • Default Value: 2.0 (Standard GD easing curve)
  • Minimum Value: 0.1 (Flattens the curve, making movement almost linear)
  • Higher Values (> 2.0): Makes the easing effect much more aggressive (e.g., faster acceleration at the start, sharper deceleration at the end).

In functions like Object.move(), easingRate is passed as the 6th parameter (optional, defaults to 2.0):

lua
1-- Move Group 1 by (100, 50) over 1.5s using EaseInOut (1) with an aggressive rate of 4.0
2Object.move(1, 100, 50, 1.5, 1, 4.0)
3
4-- Standard Move using SineInOut (13) with the default rate (2.0)
5Object.move(2, -30, 0, 0.5, 13)