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 Classic Chat / Difficulties...loading an image...

Author
Message
AJ Schaeffer
14
Years of Service
User Offline
Joined: 22nd Aug 2009
Location: Jacksonville,FL
Posted: 3rd Dec 2011 05:07
Let's say want to load an image I added to the project.

^^^Obviously would not work, but how would I set up that middle part?
In DBpro you would just have for example:


I feel...

stupid

AJ Schaeffer
14
Years of Service
User Offline
Joined: 22nd Aug 2009
Location: Jacksonville,FL
Posted: 3rd Dec 2011 05:21
*sigh*
It's late...
I didn't think of checking the EXAMPLE files...
nevermind.

lol

JavierTF
14
Years of Service
User Offline
Joined: 15th Feb 2010
Location: Going out, to the right
Posted: 3rd Dec 2011 09:28 Edited at: 3rd Dec 2011 09:36
If I understand your question, if crate.jpg is in the media folder:

image = LoadImage ( “crate.jpg” )

sprite = CreateSprite ( image )

SetSpriteSize ( sprite, 20, -1 )

Regards.
AJ Schaeffer
14
Years of Service
User Offline
Joined: 22nd Aug 2009
Location: Jacksonville,FL
Posted: 3rd Dec 2011 16:44
My problem was that the image was not in the media folder

Login to post a reply

Server time is: 2024-05-04 09:11:32
Your offset time is: 2024-05-04 09:11:32