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 / Load A Sprite But Don't Display The Sprite On The Screen?

Author
Message
JeZxLee
7
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 3rd May 2017 15:25
Hi,

We load AppGameKit Sprite with the following source code:
_______________________________________________________________
LoadImage ( 3, "\media\images\16BitSoftLogo.png" )
SixteenBitSoftLogo = CreateSprite ( 3 )
_______________________________________________________________

Above source code works fine, but the Sprite is immediately displayed on the screen?
How can we preload Sprites and not display them on the screen until needed?
Thanks!
JeZxLee
16BitSoft Inc.
Video Game Design Studio
http://www.16BitSoft.com
Wilf
Valued Member
18
Years of Service
User Offline
Joined: 1st Jun 2006
Location: Gone to Unity.
Posted: 3rd May 2017 16:04
PSY
Developer
8
Years of Service
User Offline
Joined: 3rd Jul 2016
Location: Laniakea Supercluster
Posted: 3rd May 2017 17:37
Or position it outside the visible screen
PSY LABS Games
Coders don't die, they just gosub without return
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 5th May 2017 01:01
JeZxLee, you know there is a help file for AGK. Not trying to be the bad guy, but several of your questions could be answered on your own in 5 minutes.

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 5th May 2017 06:51
I would also position it outside of the screen. I don't know if it still holds true, but in the DBPro days hidden sprites still had some overhead if they were in the visible screen space.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt

Login to post a reply

Server time is: 2024-11-22 02:28:07
Your offset time is: 2024-11-22 02:28:07