Hey all! As much as I hate to say it, I’ve found two bugs in Corona that have added a lot of extra work to my app.
1.) A little while ago I built my app for my iPod for the very first time! I was like sooo excited, but when I opened the app… nuthin’… Absolutamente nutto. It just gave me an error and showed a black screen. About two days later I realized that I had done (displayCenterReferencePoint), not (display.CenterReferencePoint). For some reason Corona “overlooked” the missing period, but my iPod wasn’t so unobservant. (Kinda big deal if you get used to forgetting the period…) Also Corona overlooked the fact that I had been calling display.newImage(“images/background”) when it should have been (“Images/background”). (yes, I should have been more careful, but it would be nice to know about it BEFORE I got to six THOUSAND lines of code)
2.) The whole time I have been making my game I was using the iPhone 4 simulator. I realized that the plane old iPhone simulator would make my X and Y coordinates go haywire, so I just forgot about it (figuring it was bugged )and used the iPhone 4 version, which worked fine. Once I finally fixed the previous bug (adding in my period and capitalizing my “I”) my images would appear on th screen. Only problem was… THE COORDINATES WERE THE EXACT SAME AS THE “BUGGED” IPHONE SIMULATOR!!! Turns out the iPhone simulator is the ONLY one that gives accurate X and Y coords! (at least on MY computer) So I had to go and painstakingly change ALL the positioning, scaling, and size of ALL my images! THEN it worked on my iPod (for some reason the demos worked on all platforms, just not MY app ).
Chances are, I’ve missed something MAJOR in my code. (although I can’t seem to find it) So don’t be afraid to say “Uh, dude, you like TOTALLY forgot to add a certain line of code to a certain line of a certain file!” LOL
Much appreciated,
J.K.
[import]uid: 66117 topic_id: 17333 reply_id: 317333[/import]