[PLUGIN] Creature2d

Post your work in progress addons and get feedback

Post » Wed Dec 09, 2015 8:00 pm

What is it?
A beta plugin for the Creature animation tool. See here to for more info about Creature:
http://creature.kestrelmoon.com/index.html

Download
https://dl.dropboxusercontent.com/u/542 ... 2d_0.1.zip

Example
https://dl.dropboxusercontent.com/u/542 ... _test.capx

Usage
1. Set the texture in the editor
2. Use ajax to load a creature json
3. when the ajax is done use the "load creature 2d" to load AJAX.LastData

Notes
* This is a webgl only plugin. If webgl isn't available for any reason then you won't see anything. I don't think I'll be making a non-webgl renderer since there isn't a way to make it fast.
* It only has one texture per object type.
* It currently only plays the "default" Creature animation. This is the main reason for being beta. More features in this area can be added easily and anyone who wants to add actions to do this is welcome to.
B
88
S
30
G
90
Posts: 5,114
Reputation: 60,839

Post » Wed Dec 09, 2015 9:07 pm

Thank you for this - an awesome addition!
I only occasionally visit - I'm learning C# for Unity, but c2 is still a respectable game engine imo....
B
69
S
18
G
65
Posts: 2,195
Reputation: 41,465

Post » Thu Dec 10, 2015 12:55 pm

Excellent! Will definitely try this out as soon as possible!
B
31
S
9
G
4
Posts: 131
Reputation: 4,321

Post » Sat Dec 12, 2015 2:03 pm

@R0j0hound, hats off to you for creating this plugin. I took a look through the code and, to be honest, it is - pun intended - a monster! I did some testing and have some random questions as a result:

1. Is this plugin derived from the github js library and do you know which Creature export option should be followed? (Not that I can export from the demo version, I'm just interested)

2. I'm guessing that the animation name on load could be changed by modifying the runtime.js function at line 213 - but how would one go about changing the animation to something else mid-play, change animation play speed etc?

3. A follow on from question 2 - do you think it could be possible to change animations by blending the bones / mesh positions from the animation current position to the next animation (is this supported by the CreatureMeshBone.js , I guess is my question, or would that transition have to be written from scratch)?

4. I see that opacity is not supported, which is not a surprise as it's a webgl draw, but if I spawn an object with fade behavior over a creature object then the creature object inherits the fade (even though fade does not work on the creature object as its own behavior). Here's an example of what I mean.

As far as I can tell the plugin performs really well. The only limitation is a pronounced jank as the plugin loads the json data, but that could easily be worked around.
I only occasionally visit - I'm learning C# for Unity, but c2 is still a respectable game engine imo....
B
69
S
18
G
65
Posts: 2,195
Reputation: 41,465

Post » Sat Dec 12, 2015 9:00 pm

1.
The pixi.js renderer on the github repository was the most helpful in making the renderer work. As far as I understand it is as long as you choose the json export you can load it with this plugin.

2.
The way it works is the animations need to be loaded and then it's a simple matter of setting the animation. When I get around to it it can be made to load all the animations from a file and then the current animation, speed of animation and position in the animation can be changed.

3.
"CreatureMeshBone.js" is the meat of the plugin, which made it fairly easy to get working. It does have a feature to blend from one animation to another and you can specify the blend factor from 0 to 1, where 0 is the first animation and 1 would be the second. Any value in between like 0.5 would be a blend of the two. When I get around to it I can implement it, but it would be nice to have an example with more than one animation to test.

4.
It is, I just forgot to uncomment a line in the code. Not sure if the result is very pleasing to the eye.

The loading jank is kind of unavoidable, not sure if I can make it asynchronous, but it would be an idea to explore.
B
88
S
30
G
90
Posts: 5,114
Reputation: 60,839

Post » Tue Mar 22, 2016 11:00 am

Hello!
First of all, i want to thank Scirra for this wonderful software, i am a beginner in this field but you gave us an easy tool to make real all our ideas.
I also want to thank all the developers who help us with custom plugins, behaviors, tutorials and answers on this forum.
And, not the least, to Mr. R0J0hound, who made this plugin. I was wondering what is the status on this one, because Creature2d looks very promising and i am thinking of using it in my future projects.
Can you give us an update?
Thank you for your hard work!

Have a great day!
B
3
Posts: 2
Reputation: 179

Post » Tue Mar 22, 2016 9:49 pm

@UrsuPolar
There's nothing new to report, I lost interest coding it pretty quick. The Krestle Moon website has a slightly modified version of it with a few things added, but that's about it. I got it rendering without webgl somewhere on my pc, but I haven't gone through the trouble of updating the download, because it breaks compatibility with the modified version on top of not being finished either.
B
88
S
30
G
90
Posts: 5,114
Reputation: 60,839

Post » Thu Mar 24, 2016 8:41 am

Message: UrsuPolar can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
@R0J0hound
Thank you for help. I will check the Krestle Moon website.
Here's the link, i think: http://www.kestrelmoon.com/creatureforu ... ruct2#p670
Meanwhile, i have found a lot of your work here, and it is amazing!
B
3
Posts: 2
Reputation: 179


Return to Work in Progress Addons

Who is online

Users browsing this forum: No registered users and 1 guest