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 / Adding scene array group sprites to a new type then disposing of the array group.

Author
Message
Amon
9
Years of Service
User Offline
Joined: 30th May 2014
Location: Shropshire, United Kingdom
Posted: 7th Apr 2019 21:45
In this simple example we grab the sprites from the array group defined in the scene manager and add them to a new type. Once added to the new type we delete and dispose of the array group sprites and array. This has the added benefit of using the scene manager to place sprites then filling a type with them to give you more flexibility when managing sprites.

Imaginations' greatest gift is the knowledge you supply it.

Attachments

Login to view attachments
Amon
9
Years of Service
User Offline
Joined: 30th May 2014
Location: Shropshire, United Kingdom
Posted: 8th Apr 2019 01:56
Yep, +1 on your thoughts about type arrays holding all possible or necassary properties. It would literally save a huge amount of time. It shouldn't even be that difficult to code. I'm going to add it as a feature request but would like others' thoughts on it before I post it.
Imaginations' greatest gift is the knowledge you supply it.

Login to post a reply

Server time is: 2024-04-25 10:29:46
Your offset time is: 2024-04-25 10:29:46