Bit Blot Forum

Aquaria => Modding => Topic started by: Yogoda on March 05, 2010, 04:10:39 pm

Title: Entities scripting guide
Post by: Yogoda on March 05, 2010, 04:10:39 pm
I've spent a lot of time analyzing and testing to learn how to script entities. I decided to write a small guide summarizing what I have learned so far, so it would be easier for people coming after me.

The guide talks about :

- Entity Creation
- Initialization
- Entity update
- Movement
- Entity States
- Shots
- Hair

http://aquariawiki.ryanballantyne.name/wiki/index.php/Guide_to_entities_scripting

Please correct directly in the Wiki if you find something false or have something to add.

Hope this will be useful !

Tell me if you want additional things to be explained.
Title: Re: Entities scripting guide
Post by: Alphasoldier on March 06, 2010, 12:28:30 am
That is amazing, just read through everything!

If possible, try to put down a rather complicated example of an existing (or made) creature to show how it's been done, just for examples sake.

Also: "A hair is attached to an entity, and an entity can only have one hair."
Doesn't the Creators second form have more than one... "hair"? (tentacle)
Or do the tentacles have animations? Or are they separate entities?

Anyway, small things like that should also be cool to explain.
Title: Re: Entities scripting guide
Post by: Yogoda on March 06, 2010, 07:39:23 am
If you load creatorform2 into the animation editor, you will see that the 3 tentacles are composed using like 50 different bones. That's quite impressive, it is the first entity I see using this technique (for tentacles). So it is an animation, not hair.

Hair are used for jelly tentacles for example, they will follow the entity, you can apply a force to it, but that's it. You can not really control the way it moves.

I will try to find a good example to attach ;)