Custom Animations?

Place to get help with not working mods / modding interface.
Post Reply
memcallen
Inserter
Inserter
Posts: 34
Joined: Sat Mar 28, 2015 1:22 am
Contact:

Custom Animations?

Post by memcallen »

I've gotten back into modding recently, and I want to know if my entity can have custom animations (kind of like animation states). These animations need to be accessable by code, as in they can be activated/deactivated by calling a function or event. Any help is appreciated, thanks.

memcallen
Inserter
Inserter
Posts: 34
Joined: Sat Mar 28, 2015 1:22 am
Contact:

Re: Custom Animations?

Post by memcallen »

Anyone know if these are going to be implemented soon, or will I have to make my own API for it?

Supercheese
Filter Inserter
Filter Inserter
Posts: 841
Joined: Mon Sep 14, 2015 7:40 am
Contact:

Re: Custom Animations?

Post by Supercheese »

Sadly control.lua lacks a good way to change the sprite/animation of an existing entity programatically. You pretty much have to spawn/despawn new entities to trigger new animations, or use hacks like having completely different sprites for a "car"-type entity's Orientations and rotate it to get new sprites/run an animation.

memcallen
Inserter
Inserter
Posts: 34
Joined: Sat Mar 28, 2015 1:22 am
Contact:

Re: Custom Animations?

Post by memcallen »

well that sucks, I might make my own api seeing as there isn't any good solutions, and then post it here. Thanks

Post Reply

Return to “Modding help”