IOS - Images only display border
Posted: Sat Jan 15, 2011 5:41 pm
Newbie here, C and Realbasic experience - but less time now days and my brain gets sore faster! - hence Rev.
I've created a 2d array to hold my game field map and I have letters in my array based on which I'll add pre-created icon images to the screen to build my levels.
The problem I have, is that I've added a land image and a water image (I've tried PNG and JPG's) - they are around 25 x 48 in size.
I've done this by selecting my graphic file as the source within a newly added image control.
I can see them before simulation, but when I simulate, I can only see the borders.
I've dug around some example code but can't understand what I'm not doing?
Also, would adding an image and then figuring out the code to clone and paste multiple versions to build my grid/level be the best method or would another control be more appropriate?
Thanks in advance.
I've created a 2d array to hold my game field map and I have letters in my array based on which I'll add pre-created icon images to the screen to build my levels.
The problem I have, is that I've added a land image and a water image (I've tried PNG and JPG's) - they are around 25 x 48 in size.
I've done this by selecting my graphic file as the source within a newly added image control.
I can see them before simulation, but when I simulate, I can only see the borders.
I've dug around some example code but can't understand what I'm not doing?
Also, would adding an image and then figuring out the code to clone and paste multiple versions to build my grid/level be the best method or would another control be more appropriate?
Thanks in advance.