Extension: Explosion Force
About
Apply explosion-like physics forces to target objects that are inside the explosion radius. Forces push the target objects away from the explosion center. The force applied is stronger the closer the target object is to the explosion center. Target objects will be changed to "Dynamic" physics objects.
Requirements:
- Target Objects must have physics behavior
- The action "Pick all instances" of Target Objects MUST be used directly above this action.
Object Variables (Target Objects):
- "__ExplosionForce.Exploded" (boolean)
- "__ExplosionForce.Magnitude" (number)
Tips:
- Start objects as "Static" physics objects so they won't move or fall over until the explosion automatically converts them to "Dynamic".
- Use the "__ExplosionForce.Exploded" object variable to manage objects that were affected by an explosion. (For instance, start an opacity tween that fades away and deletes the objects.)
- If your game freezes during an explosion, try using smaller radius or max force values.