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 / [SOLVED] Help with animating sprite - just getting a big red X

Author
Message
Golelorn
8
Years of Service
User Offline
Joined: 20th Nov 2016
Location:
Posted: 2nd Jul 2018 16:39
Hey guys,

I am not sure what I am doing wrong with animating this sprite. Thanks for any help. Not sure what I could be missing.

Attachments

Login to view attachments

The author of this post has marked a post as an answer.

Go to answer

Bengismo
7
Years of Service
User Offline
Joined: 20th Nov 2017
Location: Yorkshire, England
Posted: 2nd Jul 2018 16:48 Edited at: 2nd Jul 2018 16:51
This post has been marked by the post author as the answer.
A red cross means the image wasnt loaded

Change to
LoadImage( 1, "/media/smoketest.png" ) or just LoadImage( 1, "smoketest.png" ) and it works fine


With your current code......Its looking for a media folder inside of your media folder (media/media/smoketest.png)

EDIT::
Also...using SetErrorMode(2) will stop the program at the point where the image wasnt found and tell you the problem....Best to use SetErrorMode(2) while testing things
Golelorn
8
Years of Service
User Offline
Joined: 20th Nov 2016
Location:
Posted: 2nd Jul 2018 17:00 Edited at: 2nd Jul 2018 17:01
Thanks, Bengismo! Stupid mistake.

I was wondering why no errors where being thrown up lol

Login to post a reply

Server time is: 2024-11-23 11:45:42
Your offset time is: 2024-11-23 11:45:42