paul.whitham Posted February 12, 2014 Share Posted February 12, 2014 Hi What is the workflow for animations of sprites for a 2D game? Do you have any examples and code? Thanks Paul Link to comment
ulf.schroeter Posted February 12, 2014 Share Posted February 12, 2014 Paul, first time that anybody asked for 2D games with UNIGINE 3D engine (might be quite an overkill...). Animation of sprites (as far as I understand it) is more a general asset modelling issue (e.g. texture atlas generation with backed animations presented via some simple 2D billboard) and not bound to a specifc engine. Also no UNIGINE sample available for 2D game use case, sorry. Link to comment
paul.whitham Posted February 13, 2014 Author Share Posted February 13, 2014 Thanks Ulf for replay :) Would it not be easy to change the texture thats used by the material and what would be the fastest way to do this in code? Thanks Paul Link to comment
ulf.schroeter Posted February 13, 2014 Share Posted February 13, 2014 Easiest approach would be to provide a texture atlas divided into regular cells with all your animation frames as material texture. During runtime the texture animation can be easily done via time-animated material texture transform parameter offset/scale operations. See here Link to comment
Recommended Posts