Differences

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

Link to this comparison view

Both sides previous revision Previous revision
gdevelop5:objects:text_entry [2019/05/18 01:13]
piyushpalawat99
gdevelop5:objects:text_entry [2019/06/13 14:13] (current)
piyushpalawat99
Line 11: Line 11:
  
 After creating a new object from the Objects Editor list, select "Text entry" from the displayed 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