<SOLVED> Force player to type correct text

Get help using Construct 2

Post » Mon Dec 16, 2013 4:05 am

Hi everybody,
Thanks for reading.

I want to add a text object for the player to type in,
but I want the player to enter in the text exactly right or it is rejected after pressing next button.

for example, I want the player to type in the word, happy

How can I do that please?
Also, please provide capx if possible.

--------
update.
capx posted down a few posts by HCCGRA.

producermark112013-12-16 12:04:57
B
36
S
10
G
4
Posts: 250
Reputation: 7,963

Post » Mon Dec 16, 2013 7:42 am

add this as a condition:

system compare two values: textbox.txt = "happy"
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Dec 16, 2013 8:32 am

@LittleStain
I appreciate you responding, and to a more experienced user the above explanation would probably suffice.

I am a Newbie, any possibility you would kindly do a quick capx with a button to press to accept or deny. Please.
B
36
S
10
G
4
Posts: 250
Reputation: 7,963

Post » Mon Dec 16, 2013 8:56 am

I'm sorry, but I don't have the time to create and upload capx. The above is pretty straightforward.

on button pressed
system compare two values: textbox.txt = "happy" - perform action
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Dec 16, 2013 9:57 am

I will make for you

.. here you are ...

I had an extra 1 and a half minute ... :-)

click here

I remember what it was like to be a new user of C2....hccgra2013-12-16 10:04:31
B
9
S
2
Posts: 3
Reputation: 1,379

Post » Mon Dec 16, 2013 10:51 am

@hccgra

I remember too and I've learned more from fiddling about after reading an answer than from getting capx's..

And although making a capx for something like this only takes a short while, he could have done it himself in three clicks and probably discovered more..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Dec 16, 2013 10:56 am

Thank you both for the help.

Much appreciated.
B
36
S
10
G
4
Posts: 250
Reputation: 7,963

Post » Mon Dec 16, 2013 11:02 am

@LittleStain

I agree.

Whilst I have no issues in helping people, I see far too many users not bothering to take the time to read the manual or look at tutorials, or even use search. They will learn nothing from just getting others to do everything for them.

In principle, I generally ignore such posts. Harsh - but I detest such laziness.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
137
S
31
G
87
Posts: 5,555
Reputation: 60,454

Post » Mon Dec 16, 2013 11:37 am

@zenox98
@LittleStain

I learn by reverse 'engineering' the capx.
that's why I like the capx,
besides anyone else that may look at his post may like the capx too.

I mean the capx is literally 1 event with a few conditions long.

I don't mean to be lazy, I just don't want to spend 2 hours trying to figure out out what could take 2 minutes to create, I have already done that twice;
I have a 4 year old daughter I want to spend time with and I also have a full-time job so wanking around Event Sheets (getting frustrated)
trying to figure out simple tasks is not my idea of being productive,
and
if someone is kind enough to help me out thank you very much,
if not , no problem.

Also:
I spent literally hours making Game Play Format tutorials for Newbies,
so I don't think I am lazy and I am sure the newbies appreciate these types of tutorials too.

Click Here for Lesson 1 GPF Tutorial here

Click Here for Lesson 2 GPF Tutproducermark112013-12-16 12:14:38
B
36
S
10
G
4
Posts: 250
Reputation: 7,963

Post » Mon Dec 16, 2013 11:55 am

Reverse engineering a capx with one event, while someone told you how to create the event above?

You are right, that's not being lazy..
There are other words for it though..

While typing in the event as shown above you'd have noticed after typing the dot behind textbox a menu pops up showing all the different things you can put behind the dot. This is actually true for every object you type the name in for. So if you ever need the height of an object in a "formula" object.height will do it for you.

Reverse engineering, while possibly usefull, isn't the same as programming. Programming is solving issues while building something. reverse engineering just shows the one possible solution to an issue someone decided to use. It could be very possible there are easier ways to solve the issue, but by reverse engineering you'll never learn those.

But if it works for you to ask people to do unnessecary work for you, that's fine..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests