Dynamic alter scene width
code block
Engine.sceneWidth = pixels;
Egine.sceneHeight = pixels;
Start with a scene (properties of scene in editor set to 4 by 4)
In click event :
Engine.sceneWidth=1000;
Engine.sceneHeight=1000;
Engine.engine.scene.sceneWidth=1000;
Engine.engine.scene.sceneHeight=1000;
Geen opmerkingen:
Een reactie posten