In the Virtual Keyboard Tutorial

krazziebone02

  • Posts: 113
is it possible? when you click a letter it will automatically appeared in center for example i type "stencyl" and that word is automatically centered in the scene?..if possible how? ;D
i want to be the best user of stencyl

letmethink

  • *
  • Posts: 2545
Are you struggling with the letter appearing or with the centering of the text?
~Letmethink

sdieters

  • Posts: 2068
If you followed my tutorial correctly, you have a text attribute which holds the text to show on screen. The only thing you have to do is center the text using:

Draw [textAttribute] at x [((screenwidth/2) - (get with of text [textAttribute] using current font/2))] and y [textYPosition]

Try to use google more often, you might find it usefull. Also please stop sending me pm's everytime you have a question related to my tutorials. I am active enough to read all questions posted and there are more people then me able to help you like LetMeThink.
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p

krazziebone02

  • Posts: 113
If you followed my tutorial correctly, you have a text attribute which holds the text to show on screen. The only thing you have to do is center the text using:

Draw [textAttribute] at x [((screenwidth/2) - (get with of text [textAttribute] using current font/2))] and y [textYPosition]

Try to use google more often, you might find it usefull. Also please stop sending me pm's everytime you have a question related to my tutorials. I am active enough to read all questions posted and there are more people then me able to help you like LetMeThink.

im sorry for that pm sir imjust thinking that you cant  read my thread im so sorry sir
i want to be the best user of stencyl

krazziebone02

  • Posts: 113
Are you struggling with the letter appearing or with the centering of the text?

yes sir but i already get it thanks for the help sdieters
i want to be the best user of stencyl

krazziebone02

  • Posts: 113
by the way thank you sdieters for help next time i will not pm you
i want to be the best user of stencyl

krazziebone02

  • Posts: 113
sir i have problem  on the keys when i try to test it in android the letters need to double click before it appears in the screen is there a problem using the letters in many scenes? because i have a button that can click one time only and that button use only for one scene please help
i want to be the best user of stencyl

sdieters

  • Posts: 2068
If you need to click a letter twice you are doing something wrong. Show us some code that you are having issues with
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p

krazziebone02

  • Posts: 113
this is the scene that i have problem

in this scene i already attach the virtual keyboard and in the present scene i put some events
i want to be the best user of stencyl

krazziebone02

  • Posts: 113
i think my problem is the ID of the actor so that's why i need to double click the actor before it appears
i want to be the best user of stencyl

krazziebone02

  • Posts: 113
is it possible that all the letters and numbers in the screen can shuffle?? for example there is a button  to shuffle the letters??
i want to be the best user of stencyl