0 votes
by (370 points)
I have the box where people can type their name in it.So now if i want to replace the box with the name typed after the player press enter,what code should i use?

1 Answer

+1 vote
by (8.9k points)

Dude, please please please post your existing code when you ask questions about how to change your code.  It makes it so much easier to help you.

This code might do what you want:

<<if ndef $playerName or $playerName == "">>
  Your name is <<textbox "$playerName" "" `passage()` autofocus>>
  <<else>>
  Your name is $playerName
<</if>>

 

by (370 points)

A P P R E C I A T E

...