Custom mosters attack animation playing only 2 frames

Place to get help with not working mods / modding interface.
Eliont
Burner Inserter
Burner Inserter
Posts: 19
Joined: Thu Feb 16, 2017 3:48 pm
Contact:

Custom mosters attack animation playing only 2 frames

Post 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.
Attachments
Crystal Walker from Might and Magic series - show only first 2 frames when attacking
Crystal Walker from Might and Magic series - show only first 2 frames when attacking
attack.png (734.26 KiB) Viewed 1973 times
Butcher from Diablo II - working correctly.
Butcher from Diablo II - working correctly.
1.png (141.9 KiB) Viewed 1973 times
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: Custom mosters attack animation playing only 2 frames

Post 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.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
Eliont
Burner Inserter
Burner Inserter
Posts: 19
Joined: Thu Feb 16, 2017 3:48 pm
Contact:

Re: Custom mosters attack animation playing only 2 frames

Post 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
Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: Custom mosters attack animation playing only 2 frames

Post 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.
Eliont
Burner Inserter
Burner Inserter
Posts: 19
Joined: Thu Feb 16, 2017 3:48 pm
Contact:

Re: Custom mosters attack animation playing only 2 frames

Post by Eliont »

Thanks for clarification.
Post Reply

Return to “Modding help”