Page 1 of 1

Custom mosters attack animation playing only 2 frames

Posted: Thu Feb 16, 2017 4:02 pm
by Eliont
Hello and good time of day.

Doing new monters for my mod and have strange problem - some spritesheets working as intended, though others playing only first two frames of attack animation. Its all right with "run" and "die" animation in both cases.

Deleting cache was not solve the problem.

Working well: youtu.be/BT_Pod3HyZw
Working wrong: yadi.sk/i/HdrQ0px13EAXi2

Same animation script, only difference is file.

Someone know what the matter?
Thanks in advance.

Re: Custom mosters attack animation playing only 2 frames

Posted: Thu Feb 16, 2017 9:48 pm
by Adil
Prototypes definitions are hard, and do you expect people to just guess what did you do wrong?
The files have different numbers of frames, the attack speed may be high.

Re: Custom mosters attack animation playing only 2 frames

Posted: Fri Feb 17, 2017 1:34 am
by Eliont
Nothing so hard in definition, at least for monsters. Except i don't get what field "order" do.

butcher.lua
crystalwalker.lua
functions.lua

Re: Custom mosters attack animation playing only 2 frames

Posted: Fri Feb 17, 2017 1:50 am
by Nexela
Eliont wrote:Except i don't get what field "order" do.
Order on entities is the order in the Subgroup it is placed in on the entity selection window for the map editor.
Subgroup is the group (think row) where these icons are placed,

If your entity doesn't have any of the "placeable" flags then Order and Subgroup are not needed. The Placeable flags just tell the map editor that these entities can be placed.

Re: Custom mosters attack animation playing only 2 frames

Posted: Fri Feb 17, 2017 1:57 am
by Eliont
Thanks for clarification.