User Set Text Forum Home > Construct 2 General > How do I....? |
Post Reply
|
Page 123> |
| Author | |
Post Options
Quote Reply
Topic: User Set TextPosted: 18 Sep 2011 at 3:21pm |
|
|
So I am trying to make it so that users can set text (I want people to be able to name worlds).
Link to my file On the NewGame layout and event sheet. I want users to be able to change "Text2" (Insert World Name) to whatever they want. I set a global variable for the text but I am not sure how to make it be user defined. Any suggestions? I've been playing with it for a couple hours, I just am clueless about this. Edit: Fixed link Edited by Crazedgoalie56 - 18 Sep 2011 at 3:28pm |
|
![]() |
|
Post Options
Quote Reply
Posted: 18 Sep 2011 at 3:26pm |
|
|
The link you've provided can only be accessed by you. You need to select the 'public' link.
|
|
|
Spec:
OS: Windows 7 SP1 64bit, Intel I7-2600 3.4 GHz, Memory: 8 GB, Gfx: GeForce 560TI DirectCUII. |
|
![]() |
|
Post Options
Quote Reply
Posted: 18 Sep 2011 at 3:29pm |
|
|
Thanks. I fixed it, should work now.
|
|
![]() |
|
Post Options
Quote Reply
Posted: 19 Sep 2011 at 6:57am |
|
|
So I took another look again, I don't think there is any form of text editing in C2 (as far as I can tell), anyone happen to know or have stumbled upon soemthing?
|
|
![]() |
|
Post Options
Quote Reply
Posted: 19 Sep 2011 at 7:41am |
|
|
I don't yet use C2 much, but it looks like you're correct.
CC has the 'Editbox' for such a task as you require, which doesn't appear to have been implemented as yet :( Early days, so I expect this will change soon enough. |
|
|
Spec:
OS: Windows 7 SP1 64bit, Intel I7-2600 3.4 GHz, Memory: 8 GB, Gfx: GeForce 560TI DirectCUII. |
|
![]() |
|
Post Options
Quote Reply
Posted: 19 Sep 2011 at 8:02am |
|
|
Alright that is what I had figured. Thanks for looking though.
|
|
![]() |
|
Post Options
Quote Reply
Posted: 19 Sep 2011 at 12:09pm |
|
|
Hi Guys,
I have been building education games where a user will need to input words. As a workaround you can build a clickable keyboard and set whatever letter the user clicks on to a text object. I'm not sure if this is what you want but it should work well. The other advantage of using this approach is that it will work well for mobile devices too. Cheers Simon |
|
![]() |
|
Post Options
Quote Reply
Posted: 19 Sep 2011 at 1:26pm |
|
|
You totally just gave me an idea.
I assume that by built, you mean you used sprites or something for each letter? And then just had an event that input the correct letter? How exactly did you get the input to show up and be recognized by your program? The only concern I have is that I would need the name to be a single value so that it could be shown in text with a global variable. |
|
![]() |
|
Post Options
Quote Reply
Posted: 20 Sep 2011 at 3:50am |
|
|
Here is how I did it.
Here There are no comments at the moment so let me know if you have any problems. EDIT: This should work... Edited by simwhi - 20 Sep 2011 at 7:04am |
|
![]() |
|
Post Options
Quote Reply
Posted: 20 Sep 2011 at 6:19am |
|
|
Your link keeps giving me a 404. Is that the public link?
|
|
![]() |
|
Post Reply
|
Page 123> |
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |