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.

StatusReleased
PlatformsHTML5
Rating
Rated 3.0 out of 5 stars
(1 total ratings)
AuthorVictris Games
Made withPixiJS
Tagsgdevelop

Download

Download NowName your own price

Click download now to get access to the following files:

ExplosionForce_ProjectFiles.zip 1 MB

Comments

Log in with itch.io to leave a comment.

Hi, about this extension,...

is there anyway to pause the simulation(eg for entering a menu) and resume from the same state?..since set time scale 0 seems not working...

Yes, but you need to set the physics time to 0.  I think it is called "Word  Time Scale" and it requires you to pick at least 1 object that has the physics behavior.  Good luck!

More!

(+1)

Awesome as always, keep going!!!