Ask here your questions to get help using GDevelop.
User avatar
By Jeje2201
#65032 Hi, im confront to a problem.
Im making a text appear when the player is in collision with a panel.
When the text appear, I change it to a variable that is store in the panel.
So when the player hit a panel, a text appear with the text store in the variable of the panel the player is in collision with.
Im doing this way so whenever the player hit a new panel, I can change the text variable of each panel so the text appear depend what panel he hit. So far it work well.
Here is the Gdevelop part :
But what Im trying to do is to insert new line in the text that appear.
So in the text variable of the pannel Im doing something like : "test"+NewLine()+"test2"
But it make this :
Is there any way to fix this ?
Last edited by Jeje2201 on Tue 13 Feb 2018, 20:27, edited 1 time in total.
User avatar
By ddabrahim
#65056 Inside the variable panel expressions can not be used as default values, only string or number value can be used so even if you enter an expression as default value it is considered a string I guess.

Set the value of the variable using an event instead.
User avatar
By Jeje2201
#65065 I just found a solution the most basic possible...
You can actual do a new line in the text editor of Gd5..
Here is the exemple:
And so the text = this variable and it work perfectly
Here :
So yeah, it's fix not on purpose haha :lol: