- 2020-01-12 at 5:07 pm #22750
Hallo Verge Team,
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 #22761
you can use the find puzzle to get the index position of an object in the list:
then just get the item by using that index:2020-01-13 at 5:34 pm #22792
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 #22808
I 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 #22819
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 #228442020-01-19 at 9:02 am #22932
think i need a little more help.
I tried puzzle construction as you can see in attachment
list “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 it
does it help if i upload the app?2020-01-20 at 2:09 pm #22948
the find puzzle can only get the position index of the element. It cannot compare it with some other value on the fly.
But you can compare each element with some value in the loop.
2020-02-17 at 6:41 pm #23619GlifTekLicensee
- This reply was modified 5 months, 2 weeks ago by Yuri Kovelenov.
what’s a z-value?
like in the blender vertical… or CSS z-index?
very cool powerball machine!2020-02-18 at 6:35 am #23630
- You must be logged in to reply to this topic.