mbeytekin
Member
I didn't think this is difficult but I'm stuck and need an advice.
My goal is making a grid with sprites based on given parameters like horizontal and vertical sprite numbers. This is easy. But I want rotate them all like group from a given origin point with a given angle. All parameters will be change everytime.
Another problem is sprites' scales can be change by given two parameters (startscale,endscale). Start scale is near to rotation origin and end scale is far one.
Basically I have this parameters rows,columns,distanceX,distanceY,originpointX,originpointY,StartScale,EndScale
As you can see figure one is a grid with 5 columns and 4 rows. Total width is distanceX * columns and height is distY*rows.
Figure2 shows that scale's of sprites from startscale to endscale based on distance to rotation origin.
Figure3 shows rotation of grid.
Can anybody give an idea? Because I tried something but when rotating them I can't get a good result.
My goal is making a grid with sprites based on given parameters like horizontal and vertical sprite numbers. This is easy. But I want rotate them all like group from a given origin point with a given angle. All parameters will be change everytime.
Another problem is sprites' scales can be change by given two parameters (startscale,endscale). Start scale is near to rotation origin and end scale is far one.
Basically I have this parameters rows,columns,distanceX,distanceY,originpointX,originpointY,StartScale,EndScale
As you can see figure one is a grid with 5 columns and 4 rows. Total width is distanceX * columns and height is distY*rows.
Figure2 shows that scale's of sprites from startscale to endscale based on distance to rotation origin.
Figure3 shows rotation of grid.
Can anybody give an idea? Because I tried something but when rotating them I can't get a good result.