[Plugin] Nima - 2D Skeleton Animation

Post your work in progress addons and get feedback

Post » Fri May 19, 2017 5:56 am

To give back to the community I've hired a developer friend of mine to produce a Construct 2 Plugin of the 2D Skeleton Animation package Nima (https://www.2dimensions.com/)

Nima is currently Free in Beta!
Since it works in a web browser it supports Mac and PC (not sure about linux)

Official Nima Beginner Video Tutorials: https://www.youtube.com/playlist?list=P ... VzT_UFrBRv

Proof of concept: https://dl.dropboxusercontent.com/u/403 ... index.html

Plugin Download: https://github.com/quinnhoener/Nima-Web ... /c2_plugin

Example CAPX: https://u403350.dl.dropboxusercontent.com/u/403350/Nima-Plugin-example.capx

Currently only supports C2 - C3 coming soon.

Current Features:
Playing specific Animations
Changing animation speed (-1 to 1) negative for reverse, 0.5 for halfspeed
Flipping/Mirroring
Mesh Deformation
Nima Animation "Events" (trigger a construct action at a specific frame in your animation)

Roadmap:
Nima Collision boxes support

How to use:

-Download and unzip the plugin from the above download link.
-Copy the nima-c2-plugin folder to your Construct plugins folder.
-Restart Construct.
-Add the Nima plugin to your project by double clicking the layout.

The sprite editor will open where you can choose a still image of your character for size reference.
Close the animation editor.

Exporting your project from Nima.

After you are done animating in Nima go to the Export button in the lower right corner of Nima and click Export/Export to Engine and specify WEBGL at the top of the screen.

A .nima file will begin downloading.


There's a few more steps to get it up and running.

Back in C2 In the project window on the right. Right click the "Files" folder and pick Import and choose the exported .nima file that you just downloaded.

With the nima object selected in the properties window on the left you need to specify a few fields.

Nima Data URL: the name of the .nima file you imported with extension eg: Player.nima (note this IS case sensitive)

Start Anim: The name of the animation you want to play by default (no quotes, and this IS case sensitive)

Base Width/Height: set these values to the height and width of your still image version of your character that you added when you added the nima object to your scene. This establishes the proper aspect ratio of your character when it renders at runtime.

Press play to see your animation running in game!


Troubleshooting:

If you get a Javascript error its most likely due to typing an animation name or property setting without matching the case sensitivity of the correct file name or animation name.

If the aspect ratio of your character is strange , make sure Base Height and Width is set correctly to the same width and height of your single frame image of your character design that you imported at the beginning.

Bugs: Please either submit bugs in this thread or in the github bugs section.

And finally. special thanks for @castor2d for making Nima!
And my buddy for writing the plugin.
Last edited by justifun on Mon Jul 17, 2017 5:37 pm, edited 1 time in total.
B
90
S
44
G
17
Posts: 1,012
Reputation: 18,527

Post » Sat May 20, 2017 1:54 am

Wow, thank you, guys. This is amazing
B
36
S
5
G
3
Posts: 32
Reputation: 4,571

Post » Wed May 24, 2017 10:38 am

Thanks for sharing!
B
159
S
27
G
17
Posts: 917
Reputation: 32,677

Post » Mon Jul 17, 2017 4:46 am

Could you plz share an example capx?
B
33
S
6
Posts: 6
Reputation: 1,637

Post » Mon Jul 17, 2017 5:36 pm

@vzad - here's a capx example: https://u403350.dl.dropboxusercontent.com/u/403350/Nima-Plugin-example.capx

while making this example i just noticed a little bug where the legs stay in the previous pose of the walk cycle when you switch to the idle. we'll get that fixed and a updated plugin put up right away.
B
90
S
44
G
17
Posts: 1,012
Reputation: 18,527

Post » Mon Jul 17, 2017 9:08 pm

justifun wrote:To give back to the community I've hired a developer friend of mine to produce a Construct 2 Plugin of the 2D Skeleton Animation package Nima (https://www.2dimensions.com/)


Can your developer friend make a plugin for using Dragonbones Pro?
B
18
S
4
G
3
Posts: 50
Reputation: 2,864

Post » Mon Jul 17, 2017 9:12 pm

@redrocket - he likes money, i'm sure if you through some at him he might be interested.
B
90
S
44
G
17
Posts: 1,012
Reputation: 18,527

Post » Mon Jul 17, 2017 9:29 pm

justifun wrote:@redrocket - he likes money, i'm sure if you through some at him he might be interested.


Will you introduce me to him so I can ask for a quote?
B
18
S
4
G
3
Posts: 50
Reputation: 2,864

Post » Mon Jul 17, 2017 10:00 pm

@redrocket - sent you a PM
B
90
S
44
G
17
Posts: 1,012
Reputation: 18,527

Post » Tue Jul 18, 2017 2:40 am

justifun wrote:@vzad - here's a capx example: https://u403350.dl.dropboxusercontent.com/u/403350/Nima-Plugin-example.capx

while making this example i just noticed a little bug where the legs stay in the previous pose of the walk cycle when you switch to the idle. we'll get that fixed and a updated plugin put up right away.


Thx just got stuck on animation control~
B
33
S
6
Posts: 6
Reputation: 1,637

Next

Return to Work in Progress Addons

Who is online

Users browsing this forum: No registered users and 0 guests