Writing text for phones

iPhone/iPod/iPad specific questions and discussion

Writing text for phones

Postby knucklecrunchgames » Tue Feb 18, 2014 4:39 pm

Hi all. I know how to write text on ge with the keyboard by selecting yes on input, but how do you make buttons to write.

Thanks
User avatar
knucklecrunchgames
 
Posts: 1071
Joined: Wed Nov 21, 2012 8:01 pm
Location: In gameEditor.exe
Score: 17 Give a positive score

Re: Writing text for phones

Postby skydereign » Wed Feb 19, 2014 4:03 am

You would need to make a virtual keyboard, that way you can map clicks to keystrokes. And since you can't use the input box you'll need to manipulate the string yourself. Here's a simple example. Create a text actor with some default text. Then have another actor with the following mouse down event.
Code: Select all
strcat(text_actor.text, "a");

Now when the button actor is pressed, the text actor's text should insert an a.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Writing text for phones

Postby knucklecrunchgames » Wed Feb 19, 2014 3:29 pm

You would need to make a virtual keyboard, that way you can map clicks to keystrokes. And since you can't use the input box you'll need to manipulate the string yourself. Here's a simple example. Create a text actor with some default text. Then have another actor with the following mouse down event.
Code: Select all
strcat(text_actor.text, "a");

Now when the button actor is pressed, the text actor's text should insert an a.


Thanks sky. I have another question.

How would you do a backspace.

Thanks :)
Last edited by knucklecrunchgames on Wed Feb 19, 2014 3:33 pm, edited 1 time in total.
User avatar
knucklecrunchgames
 
Posts: 1071
Joined: Wed Nov 21, 2012 8:01 pm
Location: In gameEditor.exe
Score: 17 Give a positive score

Re: Writing text for phones

Postby knucklecrunchgames » Wed Feb 19, 2014 3:31 pm

skydereign wrote:strcat(text_actor.text, "a");


YOU... YOU...USED AN EMOTION! :shock: :o :shock: :o

But why the long face :?
User avatar
knucklecrunchgames
 
Posts: 1071
Joined: Wed Nov 21, 2012 8:01 pm
Location: In gameEditor.exe
Score: 17 Give a positive score

Re: Writing text for phones

Postby MrJolteon » Wed Feb 19, 2014 4:21 pm

knucklecrunchgames wrote:
skydereign wrote:strcat(text_actor.text, "a");


YOU... YOU...USED AN EMOTION! :shock: :o :shock: :o

But why the long face :?

No he didn't.
Join us on Discord!
Game Editor 2
These are the best ways to reach me these days


Your local Community Janitor, always lurking in the shadows...
User avatar
MrJolteon
 
Posts: 2326
Joined: Sat Aug 09, 2008 3:25 pm
Location: Stranded under endless sky
Score: 105 Give a positive score

Re: Writing text for phones

Postby knucklecrunchgames » Wed Feb 19, 2014 5:47 pm

MrJolteon wrote:
knucklecrunchgames wrote:
skydereign wrote:strcat(text_actor.text, "a");


YOU... YOU...USED AN EMOTION! :shock: :o :shock: :o

But why the long face :?

No he didn't.


Yes he did.
User avatar
knucklecrunchgames
 
Posts: 1071
Joined: Wed Nov 21, 2012 8:01 pm
Location: In gameEditor.exe
Score: 17 Give a positive score

Re: Writing text for phones

Postby DeltaLeeds » Thu Feb 20, 2014 9:58 am

knucklecrunchgames wrote:
skydereign wrote:strcat(text_actor.text, "a");


YOU... YOU...USED AN EMOTION! :shock: :o :shock: :o

But why the long face :?


That is part of the code, so of course he didn't! If that was an emote, he would have used tons of emotes in his posts.
Currently: Semi-Active.
Working on: Maybe putting my test games in gamejolt, polishing them a bit, but I still don't know when.
User avatar
DeltaLeeds
 
Posts: 693
Joined: Fri May 06, 2011 12:45 pm
Location: In front of my computer.
Score: 38 Give a positive score

Re: Writing text for phones

Postby knucklecrunchgames » Thu Feb 20, 2014 11:29 am

jonathang wrote:
knucklecrunchgames wrote:
skydereign wrote:strcat(text_actor.text, "a");


YOU... YOU...USED AN EMOTION! :shock: :o :shock: :o

But why the long face :?


That is part of the code, so of course he didn't! If that was an emote, he would have used tons of emotes in his posts.


I know. It's a joke
User avatar
knucklecrunchgames
 
Posts: 1071
Joined: Wed Nov 21, 2012 8:01 pm
Location: In gameEditor.exe
Score: 17 Give a positive score

Re: Writing text for phones

Postby sonicforvergame » Mon Mar 24, 2014 4:32 pm

skyderieg is NOT emotionless he is just so awesome in explaining it make us fell like what he says is monotone or without any feeling
Kaizoku ni ore wa naru
User avatar
sonicforvergame
 
Posts: 422
Joined: Sat Sep 01, 2012 2:17 pm
Score: 10 Give a positive score


Return to iOS

Who is online

Users browsing this forum: No registered users and 1 guest

cron