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 / AGK Auto Sprite Indexer Range

Author
Message
anwserman
13
Years of Service
User Offline
Joined: 20th May 2011
Location: Wisconsin
Posted: 18th Jun 2014 13:52
Simple question.
When AppGameKit auto-creates sprites, whats the value range of possible indexes? 10000-?

Hi there. My name is Dug. I have just met you, and I love you.
budokaiman
FPSC Tool Maker
15
Years of Service
User Offline
Joined: 24th Jun 2009
Playing: Hard to get
Posted: 18th Jun 2014 14:13 Edited at: 18th Jun 2014 14:14
I'd have to assume it's int_max( 2,147,483,647 ).
I let this code run for a bit, and got up to about 40,000.



"Giraffe is soft, Gorilla is hard." - Phaelax
anwserman
13
Years of Service
User Offline
Joined: 20th May 2011
Location: Wisconsin
Posted: 18th Jun 2014 23:12
I did something similar, and it started slowing down my laptop at around 30,000 sprites. But thanks! Won't worry about losing sleep over that max range!

Hi there. My name is Dug. I have just met you, and I love you.
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 18th Jun 2014 23:48
in theory there is also a negativ range.
INTEGER Range : -2,147,483,648 to 2,147,483,647
but i am missing some info at create sprite docu too about id parameter.

AGK 108 (B)19 : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265
budokaiman
FPSC Tool Maker
15
Years of Service
User Offline
Joined: 24th Jun 2009
Playing: Hard to get
Posted: 19th Jun 2014 16:57
Quote: "in theory there is also a negativ range."

But that's assuming that it wraps around, if there's no check done before increasing the ID, then it will have that last negative value and then never return anything else.


"Giraffe is soft, Gorilla is hard." - Phaelax

Login to post a reply

Server time is: 2024-11-25 06:55:28
Your offset time is: 2024-11-25 06:55:28