Scenes > view > camera x & Y

usages: any game with scenes larger than sceens,  

Snippet





Preview Code
getScreenX();
getScreenY(); 

Code without import com.stencyl.behavior.script.*;
Script.getScreenX();
Script.getScreenY(); 

computational shortcuts. 
copied from com.stencyl.behavior.Script
Engine.cameraX / Engine.SCALE;
Engine.cameraY / Engine.SCALE;

Applicable if Engine.SCALE = 1
Engine.cameraX
Engine.cameraX

No comments:

Post a Comment