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.
Custom mosters attack animation playing only 2 frames
Custom mosters attack animation playing only 2 frames
- Attachments
-
- Crystal Walker from Might and Magic series - show only first 2 frames when attacking
- attack.png (734.26 KiB) Viewed 1957 times
-
- Butcher from Diablo II - working correctly.
- 1.png (141.9 KiB) Viewed 1957 times
Re: Custom mosters attack animation playing only 2 frames
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.
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.
I also update mods, some of them even work.
Recently I did a mod tutorial.
Re: Custom mosters attack animation playing only 2 frames
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
Order on entities is the order in the Subgroup it is placed in on the entity selection window for the map editor.Eliont wrote:Except i don't get what field "order" do.
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
Thanks for clarification.