Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
gdevelop5:objects:text_entry [2018/10/12 19:43]
valiant_curiosity Added internal link to Examples
gdevelop5:objects:text_entry [2020/12/26 13:56] (current)
Line 10: Line 10:
 ==== Add text entry object ==== ==== Add text entry object ====
  
-After creating a new object from the Objects Editor list, select "Text entry" from displayed the list of choices+After creating a new object from the Objects Editor list, select "Text entry" from the displayed list of choices 
 {{ :gdevelop5:objects:add-text-entry-object.png?nolink }} {{ :gdevelop5:objects:add-text-entry-object.png?nolink }}
  
Line 20: Line 21:
  
 First, add a Text Object to the scene. Then, add an event to modify the content of the Text object: First, add a Text Object to the scene. Then, add an event to modify the content of the Text object:
 +
 {{ :gdevelop5:objects:text-entry-object-display-value.png?nolink }} {{ :gdevelop5:objects:text-entry-object-display-value.png?nolink }}
  
 For the last parameter, which is the new content for the text, use the expression mentioned above: For the last parameter, which is the new content for the text, use the expression mentioned above:
-{{ :gdevelop5:objects:text-text-entry.png?nolink&400 |}}+{{ :gdevelop5:objects:text-text-entry.png?nolink |}}
  
-//Note that __Entry__ should be the name of the Text Entry object. You need to replace this with the name of your Text Entry object.//+<note>__Entry__ should be the name of the Text Entry object. You need to replace this with the name of your Text Entry object.</note>
  
 Now if you run a scene preview. Start typing you will see the text object displaying whatever you type. Now if you run a scene preview. Start typing you will see the text object displaying whatever you type.
Line 39: Line 41:
 Open these examples online.</note> Open these examples online.</note>
  
-{{ :gdevelop5:objects:textexample.png?400 |}}+{{:gdevelop5:objects:textexample.png?|}}
  
 * https://editor.gdevelop-app.com/?project=example://text-entry-object * https://editor.gdevelop-app.com/?project=example://text-entry-object