- This topic has 9 replies, 3 voices, and was last updated 4 years, 10 months ago by Yuri Kovelenov.
-
AuthorPosts
-
2020-01-12 at 5:07 pm #22750alfredCustomer
Hallo Verge Team,
https://cdn.soft8soft.com/AROAJSY2GOEHMOFUVPIOE:5a4e9f7c1d/applications/Lotto_01/Lotto_01.html
i need a little help with „Lists“
In my app i build this construction to lift a ball from a bowl.
All balls are in a List called „balliste“But how can I edit (detect) the ball that was lifted up?
How can i get the name of this ball in the List?ideas would be very welcome!
Thanks for help :)puzzle in the screenshot does not the job…
2020-01-13 at 6:36 am #22761Yuri KovelenovStaffHi,
you can use the find puzzle to get the index position of an object in the list:
https://www.soft8soft.com/docs/manual/en/puzzles/Lists.html#find
then just get the item by using that index:
https://www.soft8soft.com/docs/manual/en/puzzles/Lists.html#get_remove
2020-01-13 at 5:34 pm #22792alfredCustomerHello Yuri,
i think its not so easy, because the ball that is lifted up with the yellow stick is always random. (and i dont know its name)
The only thing i know about the lifted ball is, that its Z-Value is bigger than 3. Its Z-Value is the biggest in the list.
To find its position in List, there should be
a function that finds the ball with the highest z-value in the list.Is this possible with puzzles?
puzzle in the screenshot does not the job…
2020-01-14 at 8:32 am #22808Yuri KovelenovStaffI see, you need to find an element in a list with the biggest Z-value. Then you can use the for each puzzle, and loop through your list elements, comparing the Z-value of each element with the previously found Z-value stored in a variable. If Z-value is higher then you save it to that variable (and also save the index of an element to another variable) and continue looping and comparing until the end of the list. In the end, the value of the second “index” variable will be the result you are looking for.
2020-01-14 at 6:09 pm #22819alfredCustomerhi yuri,
this sounds like a puzzle adventure.
next weekend is perfect to go this way.
i will keep you up-todate.
thanks for the advice.
2020-01-15 at 12:36 pm #22844Yuri KovelenovStaff2020-01-19 at 9:02 am #22932alfredCustomerhi Yuri,
think i need a little more help.
I tried puzzle construction as you can see in attachmentlist “big-list” generates the list of the z-values.
list “ascending” should find the highest z-value, but it doesn’t work!How can i improve my puzzles?
someone could put together a puzzle and take a screenshot?
That would be great :)
the whole community could benefit from itdoes it help if i upload the app?
2020-01-20 at 2:09 pm #22948Yuri KovelenovStaff2020-02-17 at 6:41 pm #23619GLiFTeKCustomerwhat’s a z-value?
like in the blender vertical… or CSS z-index?
curious
very cool powerball machine!Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2020-02-18 at 6:35 am #23630Yuri KovelenovStaff -
AuthorPosts
- You must be logged in to reply to this topic.