Glue:Reference:States:InterpolateToState vs InterpolateBetween

Introduction Glue automatically provides two methods for any Screen or Entity which includes multiple states: InterpolateToState and InterpolateBetween. Although both of these methods use similar concepts (interpolation using states) they have slightly different functionality. InterpolateToState is a function which requires only a single state argument and a time value. InterpolateToState is a function which continues[…]


Introduction The InterpolateBetween method allows you to combine two states to create an in-between state. For example, consider a ProgressBar Entity that shows the player’s progress on a quest. The progress percentage may be any number, and creating one state for each number (1%, 2%, 3%, 4%, etc) is tedious and impractical. The InterpolateBetween can[…]


Introduction The InterpolateToState method allows Entities and Screens to smoothly interpolate (also known as “tweening”) from one state to another over time. For example, you could set up two States for a Button Entity like “OffScreen” and “OnScreen”, where each State set the X variable of the Entity. Interpolating between States allows for easily making[…]

Glue:Reference:States:States and Inheritance

Introduction States are very powerful, but their behavior can be a little confusing when combined with inheritance. This article discusses how states and inheritance work together and things you should be aware of in your project when using States with Screens/Entities that inherit from other Screens/Entities. States are enums For starters we should lay the[…]

Advanced Interpolation Plugin

Introduction The Advanced Interpolation Plugin simplifies advanced interpolation between States. This plugin provides numerous interpolation methods which are applied using the standard InterpolateBetween method provided by Glue. The logic generated by this plugin is available through an overload to the InterpolateToState method. Just like the regular InterpolateToState method, the method generated by this plugin needs to[…]

State Categories

Introduction State Categories can be thought of as folders for states. State Categories are used for a number of reasons: To organize similar states into categories To allow multiple states to be set at the same time (if not sharing variables between states) To create multiple enumerations for more expressive code (if not sharing variables[…]


Introduction GlueView fully supports viewing states on Entities, Screens, and Objects. Screens and Entities must have their states set explicitly through GlueView’s menus, while states on Objects will automatically show up when viewing a Screen or Entity that contains the objects. Setting States States on Screens and Entities can be set through the tools window[…]