[R76] Buttons don't rotate properly with layout.

Bugs will be moved here once resolved.

Post » Thu Jan 26, 2012 3:04 am

When you rotate a layout containing a button, the button doesn't rotate correctly. It either shouldn't rotate at all, or (preferably) should rotate like all other objects, not just sort of rotate and resize. The problem is demonstrated in the following .capx:

RotatingLayerBug.capx

(Edit) Just repeatedly click the button until the layout has rotated at least 180 degrees to get the full effect.

This is a fairly low priority problem. The workaround is to not use buttons on a rotating layout, but instead create your own pretty sprite-based buttons!kittiewan2012-01-26 03:09:04
B
29
S
11
G
12
Posts: 281
Reputation: 11,888

Post » Thu Jan 26, 2012 2:23 pm

Buttons are actually form elements overlaid on to the game, so this might be a little tricky to fix... it should be possible with CSS transforms, but I think I'll come back to this after we've sorted some of the more important stuff.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Thu Jan 26, 2012 4:59 pm

As I said, it is low priority. If it were up to me, I'd just document in the manual that buttons should not be used on rotating layouts because they will not rotate properly, and tell users to use a sprite instead.

B
29
S
11
G
12
Posts: 281
Reputation: 11,888


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest