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 / Linked Lists in AGK2?

Author
Message
Amon
5
Years of Service
Recently Online
Joined: 30th May 2014
Location: Shropshire, United Kingdom
Posted: 29th Nov 2017 20:45
Hi. I'm a newbie to AGK2. Does it have any Linked Lists support command wise?
Imaginations' greatest gift is the knowledge you supply it.
Dybing
8
Years of Service
User Offline
Joined: 12th Sep 2011
Location: Bergen, Norway
Posted: 29th Nov 2017 22:09
Nope, but it's easy enough to roll your own.
Amon
5
Years of Service
Recently Online
Joined: 30th May 2014
Location: Shropshire, United Kingdom
Posted: 29th Nov 2017 22:27
Thanks. Do you have time to post a quick example? I want to store x and y values of crates. The crates are from Type Crate. Usually I would add a new Crate type to a list after new'ing it. Then iterate the list and manipulate each value to move each crate. In other languages I accomplished this using linked lists.

If you don't have enough time to write an example then maybe just a quick link to a resource to read?

Thank you.
Imaginations' greatest gift is the knowledge you supply it.
MadBit
Valued Member
10
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 29th Nov 2017 22:40
Maybe this will help?
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
Amon
5
Years of Service
Recently Online
Joined: 30th May 2014
Location: Shropshire, United Kingdom
Posted: 29th Nov 2017 23:18
That's the one.....

Thank you MadBit.
Imaginations' greatest gift is the knowledge you supply it.
c0d3r9
2
Years of Service
User Offline
Joined: 2nd Oct 2017
Location:
Posted: 19th Jan 2018 23:19
Have anyone the linkedlist.agc download link on the post in MadBits link is not clickable? It´s plain text.
Rick Nasher
2
Years of Service
User Offline
Joined: 25th Jul 2017
Location: Amsterdam
Posted: 21st Jan 2018 08:22 Edited at: 21st Jan 2018 08:27
Yep, but I just found you can still download it by using this URL in the browser:

https://forum.thegamecreators.com//apollo/download/2472334>Download linkedlist.agc

Somehow not all links are working at the moment (after an update as I read in msg of the webmaster).
I tried the [href] thingy just now and doesn't seem to work with this, so just copy above url to your browser address bar and should work fine.
c0d3r9
2
Years of Service
User Offline
Joined: 2nd Oct 2017
Location:
Posted: 21st Jan 2018 15:36
Thank you Rick.
Yes it seems there are some issues with the forum.

Login to post a reply

Server time is: 2020-02-16 22:18:25
Your offset time is: 2020-02-16 22:18:25