Rotation

Forum for plugin, effect and behavior programmers. Please use the Help & Support forum for help using Construct.

Post » Mon Sep 14, 2009 6:13 am

Hello!
Where also what function is responsible for rotate sprite in edititme if at me flag OF_ALLOWANGLES is established?
B
1
G
3
Posts: 5
Reputation: 835

Post » Mon Sep 14, 2009 8:47 am

The layout editor handles all the rotations; if you enable the flag it just means that your plugin's angle can be changed (this can be accessed in the SDK the same as the x/y/width/height).
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Mon Sep 14, 2009 9:12 am

When I enable flag OF_ALLOWANGLES TileBG looks so


Canvas rotates and the picture is not present
B
1
G
3
Posts: 5
Reputation: 835

Post » Mon Sep 14, 2009 11:07 am

i think enabling rotations just allows you to change the internal value of info.angle, but it does not handle actually drawing the rotations. if you want the tiled background to actually draw rotation, you would have to alter the ExtObject::Draw function to read info.angle and draw it differently according to the angle.
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Tue Sep 15, 2009 8:15 am

Thanks Lucid!
B
1
G
3
Posts: 5
Reputation: 835


Return to Construct engineering

Who is online

Users browsing this forum: No registered users and 1 guest