Using a index to select a value in a fixed list

in this file is a example of selecting values off a list using a index

Attachments

usingAList.blend (433 KB)

What is this used for? All I see is a cube?

press up and down arrows, see the debug info?

this is to select a value from a list with a index,

A friend needed it, and I thought others could check it as well,

this uses a fixed list size, however a “max value” could be set via python in the property sensor, using
sens=cont.sensors[‘Property’]
sens.max=own[‘BlockList’].length

Here is an example of a infinite list size to cycle

this is to select blocks for a minecraft style game,

or ?

up and down= cycle values

space bar= add value to list and set Max property on sensors

Attachments

usingAListDynamic.blend (467 KB)