Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
Hi, I would like to read the first character from a string and use the left() function:
Function.Call(left(system_msg.Text, 1)) but for some reason it outputs always "0" ... any idea what could be my mistake here?
In what way are you trying to use this : Function.Call(left(system_msg.Text, 1))
Could you share the events?
prntscr.com/6wh735
system_msg is something like "3<script.........blablabla" and I just want to read the 3 in the beginning.
set text = left(system_msg.Text, 1)
should be enough..
Don't know where the function.call came from.
Develop games in your browser. Powerful, performant & highly capable.
that worked. I thought calling the function only works with Function.call().
you dont need 2 times to set text...just
set Text to............................................................left(AJAX.LastData,1)
you dont need 2 times to set text...just set Text to............................................................left(AJAX.LastData,1)
i know..but..im a programmer and i like to ahve things seperated