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 / Create text object, can it assign identifier as 0?

Author
Message
Cybermind
Valued Member
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 4th Feb 2016 09:08
I create and destroy a lot of text objects, I create them dynamically, so the function assigns an identifier, can this identifier ever be 0? I either have to hard code identifier numbers in to my code OR set the variable/arrays that hold the identifier to 0 when destroying text objects.
13/0
BatVink
Moderator
20
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 4th Feb 2016 10:42
No, it will never be 0. I also use 0 as deleted in my arrays.
The identifiers start at 10001.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
Cybermind
Valued Member
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 7th Feb 2016 09:14
Thank you BatVink
13/0

Login to post a reply

Server time is: 2024-02-21 11:15:03
Your offset time is: 2024-02-21 11:15:03