User Tools

Site Tools


examples:objects:object_with_shadow

Object shadow using a child

This content only works with the latest development version of Orx available on github. It will not work with the current version 1.8.

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

examples/objects/object_with_shadow.txt · Last modified: 2017/06/08 16:24 (3 weeks ago) by sausage