Prev Previous Post   Next Post Next
Old 04-22-2010, 03:46 PM
Habhome's Avatar
Habhome Habhome is offline
Join Date: Jan 2010
Location: Sweden
Posts: 1,091

There have been other people asking about this, I'll merge this into a thread I remember about this. There's only two pages of threads so far, it shouldn't take long to go through both to see if there is a similar topic (I just did).

Also the answer is that you first load your picture as you did (without the : ), then you have to draw it to the screen. But to see the image you have to catch it in a loop also, otherwise it'll exit the program instantly:

image_bg = image.load("images/background.png")

width = screen.width() --Saves screen width
height = screen.height() --Saves screen height


while(true) do --eternal loop
    if( == 1 and control.isTouch() == 1) then --if the screen is touched
          break --break the loop

that code draws an image and exit when you press the screen (Unless I typoed something :P)
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine
Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it!
Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it.
Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^

Last edited by Habhome; 04-22-2010 at 03:55 PM.
Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 07:16 PM.