text game
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
text game
how can i create a text game?
when i was using visual basic on windows i wrote
if field.text = "hello" then show window2
but i don't know how to do this on live code
i tried this but doesn't work
if text into field is "hello" then open card id 1010
help me.
thank
when i was using visual basic on windows i wrote
if field.text = "hello" then show window2
but i don't know how to do this on live code
i tried this but doesn't work
if text into field is "hello" then open card id 1010
help me.
thank
Re: text game
thank, but don't work
i tried to put this string in the stack and in the field.
when i write hello in the field card 1010 doesn't open
i tried to put this string in the stack and in the field.
when i write hello in the field card 1010 doesn't open
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: text game
Hi Margu,
What do you want ?
1. Going to cd id 1010 when "hello" has written in the field ?
2. Going to cd id 1010 when "hello" has written in the field and the user clicked to a checkup btn ?
Best regard
Jean-Marc
Yeswhen i write hello in the field card 1010 doesn't open
What do you want ?
1. Going to cd id 1010 when "hello" has written in the field ?
2. Going to cd id 1010 when "hello" has written in the field and the user clicked to a checkup btn ?
Best regard
Jean-Marc
https://alternatic.ch
Re: text game
i prefer that Going to cd id 1010 when "hello" has written in the field and the user clicked to a checkup btn.
but i'm okay also with the first choice.
thank
but i'm okay also with the first choice.
thank
-
- Livecode Opensource Backer
- Posts: 1336
- Joined: Sun Jul 12, 2009 10:53 am
- Location: Bordeaux, France
Re: text game
Margu...
put this into the script of a field...
or, if you want to do it by clicking on a button, put this into the script of a button..
Now, we have covered all your bases...
Dixie
put this into the script of a field...
Code: Select all
on returnInField
if the text of me = "Hello" then go card id 1010
end returnInField
Code: Select all
on mouseUp
if the text of fld 1 = "hello" then go card id 1010
end mouseUp
Dixie