I need to put an integer into a label.text.I converted the integer to float but I cant seem to convert float to string.
Label4.Text=IntToFloat(player.x);
What is wrong with this?
In fact I cant seem to put anything other than string in labels. Yet I can put integers and others into player.say.
You need to use String.Format to create strings that parse these.
https://adventuregamestudio.github.io/ags-manual/String.html#stringformat
More information on formatting is here
https://adventuregamestudio.github.io/ags-manual/StringFormats.html
Exactly, for instance like this:
Label4.Text = String.Format("player x is %d", player.x);
Conversion to float is pointless here; you can insert an integer into a string as well.
Thanks for the help.