Page 1 of 1

Managing/moving objects in a list

Posted: Tue Jan 14, 2020 7:10 am
by polartech
Hi guys.

So, I`m attempting to move objects in a simple arrangement (no listbox, just move objects).

I want the buttons to add/move the relevant objects into the central grey box image with latest on top, second middle, earliest bottom.

Any further additions moves the others down, with the newest always appearing on top.

The remove buttons should, as expected, take the object off the screen and move any that are below it up so that the list is always filled top to bottom, in order.

See attached for what I`m talking about :)

I can`t seem to get the coding quite right!

Cheers.

Re: Managing/moving objects in a list

Posted: Thu Jan 16, 2020 11:06 pm
by polartech
I can offer a monetary reward of 100 Euro if anyone can help me crack this :)

It`s for a small game project that I want to try to offer commercially.

Thanks.

Re: Managing/moving objects in a list

Posted: Mon Jan 20, 2020 9:12 am
by Primo6210
Hello Im just this your question, but at this time im on duty.

when i have time i try to do this for you, you don`t spend money for this.

first i must translate you text in German, but i come from german.

actualy i don´t understand exactly what you mean. I need a little time to finde out and make your script for you.

give me little time, hope in the next days i have the script and post it here for you.

greets from germany

Re: Managing/moving objects in a list

Posted: Tue Jan 21, 2020 2:05 am
by polartech
That sounds great, thank you!

Happy to give due payment for results as it’s only fair.

Feel free to contact me if you need clarification.

Thanks again.

Re: Managing/moving objects in a list

Posted: Tue Jan 21, 2020 9:09 am
by dgilmour
Is this what you want?
list.zip
(1.26 KiB) Downloaded 62 times

Re: Managing/moving objects in a list

Posted: Tue Jan 21, 2020 10:40 am
by polartech
Oh wow.. yes, that`s really close! :)

The functionality is perfect, just one thing.. I was wanting the colour blocks to appear in a vertical list of three.. for example, red on the top of the list, then yellow, then blue at the bottom. So you can see them all when added.

Starting off, the first block goes to the top slot. When a second is added, that new one goes to the top slot and the one that was there is moved down to the centre slot. Similarly, when another is added, the other two move down a slot. Most recent is always on top.

Then if say the yellow (centre) one is removed, the blue one at the bottom moves up one to take the slot that yellow was in. The list is always filled from the top down.

I hope that makes sense :)

Again, happy to compensate anyone who can help.

Thank you so much!

Re: Managing/moving objects in a list

Posted: Tue Jan 21, 2020 12:40 pm
by dgilmour
Should incoming blocks push the bottom block out if there are all three slots taken?

Re: Managing/moving objects in a list

Posted: Tue Jan 21, 2020 1:17 pm
by dgilmour
OK, check this out.
list.zip
(1.53 KiB) Downloaded 72 times

Re: Managing/moving objects in a list

Posted: Wed Jan 22, 2020 2:52 am
by polartech
Magnificent!! You truly are a master dgilmour :)

This is precisely the behaviour that I needed.

Very grateful to you, and if you PM me I`m happy to arrange something as a thanks.

Re: Managing/moving objects in a list

Posted: Sun Feb 02, 2020 8:36 am
by Primo6210
Yes, dgilmour ist hte master of here ;)