Image:
 Author: FRA32 Group: Default Filesize: 27.72 kB Date added: 2020-04-04 Rating: 5.6 Downloads: 729 Views: 450 Comments: 7 Ratings: 2 Times favored: 0 Made with: Algodoo v2.1.0 Tags:
|
After years of thyme experimentation, one my oldest questions has finally been answered:
How do you make and use Class type variables?
This scene showcases a brand new class type variable called scene.my.list which is capable of storing an infinite amount of data which can be individually changed. Use the green boxes to enter text and position ID and the blue buttons to add a text line to the end or overwrite an existing entry.
One remaining issue is that the class-type is volatile, meaning it won't survive if the scene is undone or reloaded. For this reason, this scene features an onSpawn script that rebuilds the class from scratch everytime the scene reloads.
The discovery of the class syntax unfortunally was not my own, but that of Kutis96, a User I met on our new Algodoo Discord [Link removed due to safety reasons. You can find it on the Forum under Livingroom/Ghost Town]. Thanks to him, I have learned of many powerfull thyme commands that allow countless possibilities. I will most likely upload at least two more scenes showcasing what I learnt. |
Last edited at 2020/04/04 20:19:22 by FRA32
Please log in to rate this scene
|