1/14/2024 0 Comments Algodoo marble races![]() Note: Writing variables incorrectly will result in the variable being a temporary variable instead of a permanent variable. The variable can either be a global variable, which has properties for the entire scene (written as scene.my.nameHere), or an local object variable, stored inside an object (written as _nameHere). Using Thyme to do anything meaningful requires a simple syntax basing on variable manipulation: update - Like postStep, but it triggers every time, even when the simulation is not running.postStep - Triggers while the simulation is running according to the HZ level of the simulation.Without further scripting, this will trigger no matter what key it was. onKey - Triggers every time a key is used.onSpawn - Triggers every time the object is loaded into Algodoo.onLaserHit - Triggers when the beam of a laser hits an object.onHitByLaser - Triggers if the object is hit by a laser beam. ![]() onDie - Triggers upon the deletion of the object.onCollide - Triggers when this object collides with another.onClick - Triggers when the object is clicked.It can change values of objects during the occurrence of certain events. Thyme is the proprietary programming language in Algodoo. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |