To me it LOOKS like a bug.
However, since I am a newbie, I thought I would ASK before “submitting” the bug.
Ok, background. I am a math instructor/professor - so this just doesn’t look right. Well, definitely not what I wanted.
I am on Using Corona SDK Mobile Game Development
Page 68
I made the following changes to see “how things work” (I like to experiment)
image02.xScale =0.5
image03.rotation = 45
image03.xScale =0.5
Now, image02 looks exactly like how I expect it to look “shrunk” in the x-axis but same size in the y.
However, image03 doesn’t look like what I expected.
In fact it looks like
image04.yScale=0.5 (I added this to try to figure out what I saw) flipped over its yCenter (mathematically speaking).
The reason it doesn’t look like what I expected is because it appears that the x length is 100% instead of 50%.
So, I thought of the following. Maybe they shrunk the original image then rotating it - and rotation of the image makes it appear to be longer than it is. I created 2 red lines that ran down the edges of the first image and that is my best guess as to what they did.
To me that is wrong (from a math point of view). My guess is because there is no “order of operations” between xScale and rotation. Because of that, they had to decide what to do when xScale and rotation are both used. Because what I wanted to happen was rotation THEN xScale. But what really happened was xScale THEN rotation. Correct???
So, if I REALLY wanted rotation THEN xScale - I guess I would have to save the rotation file - then reload it then xScale it. Am I correct?
Thanks for your help!
Is this ok, if I use this forum for my MANY questions?
[import]uid: 159663 topic_id: 28203 reply_id: 328203[/import]
[import]uid: 52491 topic_id: 28203 reply_id: 114071[/import]