Jump to content

[SOLVED] Doing sprite animations for 2D game


photo

Recommended Posts

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

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

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
×
×
  • Create New...