Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / Image not found? Red "x" on the checkerboard. Help please!

Author
Message
AHappyPea
7
Years of Service
User Offline
Joined: 2nd Apr 2017
Location:
Posted: 2nd Apr 2017 07:54
Hello! Im just beginning this whole process and have already hit a wall. I've tried to download multiple images from the internet and have placed them into my media file in my project and still have the same chckerbaord box in the top left corner of my "run" window. HELP PLEASE!
Here is the code Ive entered:

SetVirtualResolution(1024,768)
LoadImage(1,"happy pea")
CreateSprite(1,1)
do
sync()
loop

Ive also tried including png just incase.

Attachments

Login to view attachments
Midget Blaster
AGK Developer
7
Years of Service
User Offline
Joined: 7th May 2016
Location:
Posted: 2nd Apr 2017 11:05
You have to do LoadImage(1,"happy pea.png"). You need to make sure you all the letters are the same and make sure they are lower case as it says in the file.
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 2nd Apr 2017 20:09
The file itself is called "happy pea". There is no file extension. I'm not sure if AppGameKit needs an image to have an image file extension before it can load the image?

I would resave the image in an art package as a .png file, and make sure it has the correct file extension. e.g. "happy pea.png"

Then follow all of Midget Blasters advice in the post above

Hope that helps, let us know
AHappyPea
7
Years of Service
User Offline
Joined: 2nd Apr 2017
Location:
Posted: 2nd Apr 2017 20:42
That worked great guys, thank you for the help!

Login to post a reply

Server time is: 2024-04-19 17:57:51
Your offset time is: 2024-04-19 17:57:51