Im creating a 2D fighting game.
Which objects i could use to represent sprites?
Can anyone could give me advise which scene node to use
and how to store animations.
for example do i nedd to use single mesh and then set texture for each frame, or to use separate mesh for each frame with texture already set?
previously i was using draw2dImage methods but i think i need do this using flat meshes.
animation in 2D fighting game
In my game i wrote a new scenenode for animated sprites. (based on the standard billboard scenenode)
Which can do frame animation, translations(x,y) since sprites have virtual depth, scaling etc.
Hm maybe i should separate it from my game and write up a tutorial.
Since it might be useful for more peeps than me.
Depending on your needs you could use the defacto billboard scenenode.
As long as you write an animator that can flip textures (and maybe resize the node, if all textures aren't of the same size).
Which can do frame animation, translations(x,y) since sprites have virtual depth, scaling etc.
Hm maybe i should separate it from my game and write up a tutorial.
Since it might be useful for more peeps than me.
Depending on your needs you could use the defacto billboard scenenode.
As long as you write an animator that can flip textures (and maybe resize the node, if all textures aren't of the same size).