imagesheet and layout issues

I changed my code to that Did I do it wrong?

Also, I am using public build 894, I found this

Build 929
“Fixes casenum: 17866. Sprite trimming regression introduced in build 926.”

I wonder if this is affecting what I am doing. [import]uid: 160288 topic_id: 32544 reply_id: 129684[/import]

It’s probably not the issue, but in this line:

local piece = display.newImage(piecesImageSheet, piecesSheetInfo:getFrameIndex(pieces[i].color), display.isFullResolution)

display.isFullResolution isn’t valid, unless you previously declared it. “isFullResolution” isn’t an inherent property of the display library.

Try this somewhere in your code:

print(display.isFullResolution)

Now look at the Terminal… most likely it will print “nil” in there, which means it’s not a defined or existing property. What you want to enter instead is true.

As for that “sprite regression” issue, it sounds like it was something introduced in Build 926 and fixed shortly after in Build 929… so it wouldn’t affect Build 894. It’s possible there’s another bug (which is what we’re trying to determine), but I don’t think it’s that one in specific.

Brent
[import]uid: 9747 topic_id: 32544 reply_id: 129688[/import]

I tried just “true” and it didn’t make any difference, so I used display.isFullResolution thinking I was suppose to do that instead.

I’m not sure about this trimming, I think this maybe a bug or just something I am doing wrong. The other issue where it stretches one resolution horizontally only but all other resolutions don’t stretch I have a gut feeling is a bug.

Should I just zip up the project and send it to them with notes on what is happening? It is only 160 lines of code right now and most of it is needed so everything can be seen in relationship to each other. I shouldn’t have discussed two issues in this thread, it just makes it more confusing, I am sorry. Should I move the 2nd issue into another thread and keep this just for the trimming issue?
[import]uid: 160288 topic_id: 32544 reply_id: 129689[/import]

Hello,
If you can, please zip up the project and send it to me first. I’m in the middle of several other things, but I might get a chance to look at it this weekend. If not, early next week is likely. If I notice anything weird, maybe I can fix it… if everything looks fine, then it could be a bug and I’ll submit it to Corona.

brent (at) ignisdesign (dot) com

Thanks! [import]uid: 9747 topic_id: 32544 reply_id: 129693[/import]

Thanks, I will shoot you an email shortly.
I just purchased a Pro license of Corona, and downloaded the latest build. It did not affect the re-sizing issue that I believe maybe a bug. It didn’t change anything in regards to the trim issue either. [import]uid: 160288 topic_id: 32544 reply_id: 129694[/import]