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 / What happened to Dynamic Lists?

Author
Message
XanthorXIII
AGK Gold Backer
12
Years of Service
User Offline
Joined: 13th May 2011
Location:
Posted: 3rd Apr 2021 05:56
That was one of the items on the Kickstarter at least for AGK2 which I supported. Maybe just for clarification is this the Inserting and Removing elements from arrays? I just need to know what I need to use while building my game in AppGameKit Studio.

Thanks!
Jack
19
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 3rd Apr 2021 12:35 Edited at: 3rd Apr 2021 12:40
This may give you all the background information:
https://www.appgamekit.com/documentation/guides/12_array_changes.htm

You can sort, insert, remove, append or clear any array.
Arrays may also be passed directly to functions and saved or loaded from/to json.

Dynamic Lists, at least based on c#, are quite similar to the current AppGameKit type - array structure.

PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 3rd Apr 2021 14:57
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 18th Jun 2021 02:03
Quote: "find_ind = myArray.find(15) "

don't forget myArray.sort()
Doc wrote: ".sort() will always sort in ascending order and .find(item) will only work on arrays that are in ascending order. "
[My Itch.io Home] [Community Apps on Itch.io]
[AGK Resource Directory] [TGC @ GitHub]
[CODE lang=agk] YOUR CODE HERE [/CODE]
[VIDEO=youtube] VIDEO ID [/VIDEO]
[AGK Showcase][Google Forum Search]
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 19th Jun 2021 13:51
Yes good catch, its probably best to use .insertSorted() when using .find()

Login to post a reply

Server time is: 2024-03-29 08:51:51
Your offset time is: 2024-03-29 08:51:51