Added child scaling
@@ -111,7 +111,11 @@ class Scene
111
111
{
112
112
if(this.parentScene)
113
113
{
114
this.real_position.x = this.parentScene.real_position.x + (this.position.x * this.parentScene.real_size.x);
115
this.real_position.y = this.parentScene.real_position.y + (this.position.y * this.parentScene.real_size.y);
114
116
117
this.real_size.x = this.parentScene.real_size.x * this.size.x;
118
this.real_size.y = this.parentScene.real_size.y * this.size.y;
115
119
}
116
120
else
117
121
{
@@ -111,7 +111,11 @@ class Scene111
{111
{112
if(this.parentScene)112
if(this.parentScene)113
{113
{114
this.real_position.x = this.parentScene.real_position.x + (this.position.x * this.parentScene.real_size.x);115
this.real_position.y = this.parentScene.real_position.y + (this.position.y * this.parentScene.real_size.y);114
116
117
this.real_size.x = this.parentScene.real_size.x * this.size.x;118
this.real_size.y = this.parentScene.real_size.y * this.size.y;115
}119
}116
else120
else117
{121
{