User Tools

Site Tools


en:examples:objects:object_with_shadow

This is an old revision of the document!


Object shadow using a child

Assets

Code

orxObject_CreateFromConfig("CannonObject");

Config

[CannonObject]
Graphic = CannonGraphic
Smoothing = true
Position = (300, 200, -0.1)
Rotation = -45
ChildList = CannonShadow
 
[CannonGraphic]
Texture = cannon.png
Pivot = (18.5, 26, 0)
 
 
[CannonShadow]
Graphic = CannonShadowGraphic
Position = (-20, 20, 0.0)
IgnoreFromParent = position.rotation
 
[CannonShadowGraphic@CannonGraphic]
Texture = cannon-shadow.png
Alpha = 0.5

Result

en/examples/objects/object_with_shadow.1518583666.txt.gz · Last modified: 2018/02/14 00:47 (7 years ago) (external edit)