After working with C2 for a few months I find that I would love a default variable feature.
As it is now when you create a new variable either as global/local/object you can only set a basic value(text/number/boolean). The suggestion is to allow for either reference to another variable or even a piece of code.
I am not saying this a mandatory feature or must have, just an convience to reduce event's. As an example theory of use which I was thinking today.
var highPoint = (layoutWidth / 2)
in the moon bullet behaviour
Moon.Bullet.gravity: (Moon.x < highPoint ? -20 : 20)
the purpose of this is that even without doing an event the moon will rise when it's left of the layoutwidth and descend when it's on the right. This is just a simple theory sample. But it could lead to some more embeded results for variable.
alternatively instead of js code, it could be linked to a function
Moon.Bullet.gravity: —
Sun.Bullet.gravity: —
onFunction("celestialGavity")
set return value = (Moon.x < highPoint ? -20 : 20)