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.

AppGameKit Studio Chat / [SOLVED] Trouble loading media using VS2019

Author
Message
JonEnstrom
3
Years of Service
User Offline
Joined: 27th Apr 2020
Location:
Posted: 18th May 2020 15:22
I imagine something simple is going on here but I've spent a few hours and cannot resolve the problem.

I have simply copied the blank template for visual studio 64 bit from Tier2/apps folder, and started to port some code into VS 2019 from some work previously done in Android Studio.

First thing I noticed that the sprites are not loading from the media folder (showing the red X).. So I started over without any other code and just tried to load a single sprite, but it just wont work!
I tried placing my test.png image in the following folders:

Approot/
Approot/media
Approot/assets
Approot/assets/media

Unfortunately it's still not working. Also I tried to use agk::SetFolder("") and also tried agk::SetFolder("media") etc.. with no luck.

Any ideas what the issue could be?

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

Go to answer

JonEnstrom
3
Years of Service
User Offline
Joined: 27th Apr 2020
Location:
Posted: 18th May 2020 15:34
This post has been marked by the post author as the answer.
SOLVED: Somewhat embarrassing I had somehow named the image test.png.png and didn't realize it.

Login to post a reply

Server time is: 2024-03-29 06:18:35
Your offset time is: 2024-03-29 06:18:35