Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
{
	"componentName":"setProperties"
  , "properties" : {
		"positionY" : { "*weighted*" : [ {"10" : -2.0}, {"12" : 1.5 } ] },
	}
  , "listen": "createPlatform"
  , "trigger": "emit"
}

An emitter that picks a random value from an array to chose the number of entities to emit

Code Block
{
    "componentName":"entityEmitter"
  , "listen":"click"
  , "amount":{"*random*": [ 3, 4, 6, 8, 10, 15 ] }
  , "entity":"pool:Rock1Shard1"
  , "angleOffset":"random"
  , "distanceOffset":.5
  , "speed":5
}