User mini profile

- Mon 12 Feb 2018, 09:47#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 : http://prntscr.com/idio3oBut 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 : http://prntscr.com/idimvwIs there any way to fix this ?

Last edited by Jeje2201 on Tue 13 Feb 2018, 20:27, edited 1 time in total.

User mini profile

- Tue 13 Feb 2018, 14:25#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.

User mini profile

- Tue 13 Feb 2018, 20:26#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: http://prntscr.com/ieaa5jAnd so the text = this variable and it work perfectlyHere : http://prntscr.com/ieaaj9So yeah, it's fix not on purpose haha