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 / CreateSprite vs LoadSprite

Author
Message
Fluorescent
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 1st Aug 2005
Location: Stockholm, Sweden
Posted: 28th Jul 2017 19:40 Edited at: 28th Jul 2017 19:41
What is the difference between CreateSprite and LoadSprite really? Is it that LoadSprite must have an image id and CreateSprite can be given image 0 and therefore create a blank sprite?

Whups! Nevermind I missed that one takes a filename$ and the other an id.
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 28th Jul 2017 21:07
also, LoadSprite will automatically free the image associated with it when deleted so its handy for single use images but if you load lots of sprites that use the same image your going to waist lots of memory, best to use LoadImage/CreateSprite

Login to post a reply

Server time is: 2024-09-30 05:20:38
Your offset time is: 2024-09-30 05:20:38