Page 1 of 1

Have all properties of type Animation or Animation4Way actually animate

Posted: Sun Dec 01, 2019 2:50 pm
by Artentus
I was experimenting with the Turret.base_picture property just now (which is of type Animation4Way) and I noticed the game only ever displays the first frame of the animation.
This is in my oppinion misleading, a property of type Animation4Way should support all features of the type Animation4Way. While I haven't tested this throughtout the entire API I think it highly possible this misleading behavior is also present in other locations.

If animation is not intended for this property it should have a different type instead that doesn't support animations to avoid actual behavior differing from expected behavior.
Although that is a valid solution personally I'd find it more useful to actually enable animations on the property because otherwise there is no way to get a continuos animation on the particular entity.

Re: Have all properties of type Animation or Animation4Way actually animate

Posted: Sun Dec 01, 2019 3:13 pm
by posila
Honestly, I don't remember why I made the base_picture to load as Animation4Way ... It used to be loaded as Sprite, we needed it to have 4 directions for fluid turret, that's when I changed it. If constant animation (basically frame_index = (tick * animation_speed + random offset based on position) % frame_count) is alright, I can do that.

Re: Have all properties of type Animation or Animation4Way actually animate

Posted: Sun Dec 01, 2019 4:18 pm
by Artentus
Yes just a simple animation running at all times is fine. Thank you!

Re: Have all properties of type Animation or Animation4Way actually animate

Posted: Fri Aug 14, 2020 7:32 pm
by Artentus
This does work in 1.0 now, thank you.
Can be moved to implemented.