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
10
Years of Service
User Offline
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
13
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
10
Years of Service
User Offline
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
VIP Member
Gold Codemaster
15
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
10
Years of Service
User Offline
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.
Rick Nasher
7
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.

Login to post a reply

Server time is: 2024-11-21 19:21:38
Your offset time is: 2024-11-21 19:21:38