Looking for help.
I’m hoping to drive a game’s background image from my website… and I was hoping to have these background images loaded from my website (if connected) rather than bundling lots of BIG images file inside the app itself.
So I call this line: (preceded by the appropriate networkListener() function)
lRemoteImage = display.loadRemoteImage( “http://www.softscapedesigns.com/TTT_Images/TTT_Background_101.jpg”, “GET”, networkListener, “TTT_Daily_Drop.png”, system.TemporaryDirectory, 0, 130);
AND it works great the first time. Then the user advances to the next LEVEL and I want to load a different image. The 2nd time this code chunk is called… it FAILS… I think because the “TTT_Daily_Drop.png” file is already in the TemporaryDirectory.
So my question is: “How can I delete the existing TemporaryDirectory file AND/OR is this even a viable technique for incorporating dynamic background images (on at a time) on an iPad screen?”
I was tempted to change the name of the TempFile with each call, but was afraid I’d clog up the TemporaryDirectory with all the old files. Just trying to do this the “right” way and keep things small and tight. :)
Davin
P.S. Please be very clear on any explanations… I’m REALLY new.