1
Graphics / Re: Is there a Sprite "Node" equivilant
« on: April 04, 2012, 08:13:10 pm »
I think the first thing...
I would like to be able to draw multiple sprites to a "container sprite" and then also be able to transform that, which would also transform it's children... how many engines seem to work, flixel, starling, jMonkey all seem to adopt this concept of a parent group drawing children idea
an example would be to draw a character and a sword... two sprites.
draw the character to the "node" with the usual information.
draw the sword to the "node", move it's position to 100,100 at a rotation of 45 degrees.
draw the "node" to the screen, rotate it by 180 degrees.
The result would be like drawing character and sword to node... then rotating the whole thing 180 degrees together.
I would like to be able to draw multiple sprites to a "container sprite" and then also be able to transform that, which would also transform it's children... how many engines seem to work, flixel, starling, jMonkey all seem to adopt this concept of a parent group drawing children idea
an example would be to draw a character and a sword... two sprites.
draw the character to the "node" with the usual information.
draw the sword to the "node", move it's position to 100,100 at a rotation of 45 degrees.
draw the "node" to the screen, rotate it by 180 degrees.
The result would be like drawing character and sword to node... then rotating the whole thing 180 degrees together.