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 / How to correctly manage sprites ?

Author
Message
Phat
10
Years of Service
User Offline
Joined: 20th May 2014
Location:
Posted: 10th Jun 2014 21:29 Edited at: 12th Jun 2014 03:50
Hi.

I love AGK. Especially when I could reset the auto ID with DeleteAllSprites() or DeleteAllTexts().

Coding in V2 Alpha 3 ATM, we have some bugs with this kind of commands.
My question is : it is possible to reset the autoID with a command ? If not, how can i assign an authentic ID to the sprite (other than 10001) ?
Thanks for reading.
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 12th Jun 2014 10:39 Edited at: 12th Jun 2014 10:41
You can number sprites from 1 to 10000 manually: CrateSprite(1, imageID)

If you want to clear the autogenerated sprites you could use a function:

Login to post a reply

Server time is: 2024-11-25 05:40:28
Your offset time is: 2024-11-25 05:40:28