OnLaserHit := (e)=>{ (scene.my.motor1 && scene.my.motor2) ? {scene.my.motor3 = true} : {scene.my.motor3 = false} }
scene.my.motor3 = (scene.my.motor1 && scene.my.motor2)
By Daniels220
Scene.my.variable1 == 0 || scene.my.variable1 == 100 ?{scene.my.variable2 = "Hello"}:{scene.my.variable1 + scene.my.random}
from
http://www.phunland.com/wiki/Thyme.
* Conditions — x ? y : z (x = condition, y = if true, z = if false)
* Equal — x == y
* Not equal — x != y
* Greater than — x > y
* Greater than or equal — x >= y
* Less than — x < y
* Less than or equal — x <= y
* Addition — x + y
* Subtraction — x - y
* Multiplication — x * y
* Division — x / y
* Modulus — x % y
* Power of — x ^ y
* Negate — -x
* Boolean NOT — !x
* Boolean AND — x && y
* Boolean OR — x || y
* List addition — x ++ y
Dream of Algodoo as game development engine...
-
Kilinich
- [Best bug reporter 2010]
-
- Posts: 1502
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
-
No hay comentarios:
Publicar un comentario