'game_over#game_overSprite' does not have any property called 'euler'
Same thing if I use ‘rotation’ rather than ‘euler’ (no property called ‘rotation’ error). I’m also getting the same error on go.animate() for rotation. The ‘scale’ and ‘tint’ properties are being set just fine, so I know my GO url is correct…
go.animate is for properties of a game object. You can make new properties and then apply their values to other things though. I’m not sure if it works for components but if it does for some things directly then great.
go.animate works for any runtime properties, different things have different properties. E.g. a sprite component has scale and size, as can be seen here: http://www.defold.com/ref/sprite/. If you add properties to a script, like so:
go.property("my_property", 1.0)
You can animate that as well, as long as its numeric.
The same goes for shader constants. The default material for sprites has a shader constant called “tint”, and the sprite component implicitly defines the shader constants as properties. This means that if you make your own material with other shader constants, and uses that material for your sprite, you can animate these values too. A great way to create cool lighting effects etc.
Just realised everything I said was already described here.
As @Ragnar_Svensson wrote, there are different properties on the different components, as well as user defined properties and the ones on the actual game object. In the case of the euler property it exists on the game object and not on the sprite so you should do like this