This content has been marked as final. Show 3 replies
You need to get the width of your item and the width of the stage:
item.x = stageWidth/2 - item.width //pseudocode
I believe that you can move the whole stage by using the this keyword at the root level and setting its x and y.
Re: Text Input
How about a clickable QUERTY keypad that shows up in your app?
> How about a clickable QUERTY keypad that shows up in your app?
Imagine you need to type in a custom message thats a little bit longer, it
would be slow and painfull.
But it can prompt back to normal view displaying just the message input
console, and on some "send" button or "continue" to prompt back to FS.
Someone knows anything about that centering problem?
Forget the user input and move on, however you can use (Stage.width -50%,Stage.height-50%) to get the centre, you will still need to compensate the width of the object you are centering.