Hey guys,
Having a few issues with tokenat. Please see the capx.
dropbox.com/s/ogfffbexvc0uicd/tokenat.capx
In event sheet 2, any reason why Array.At(0) is not being set to 5.
thanks :)
Develop games in your browser. Powerful, performant & highly capable.
Because Array.At(0) is 0 when you set text 2. You set array.at(0) to 5 only after that.
I'm setting it to text3
if you don't use tokenat this issue doesn't happen.
weird.
In event sheet 2 there is no tokenat, but now I see what you meant.
Encapsule the tokenat expression with int() or float(). This will convert the string "0" to the number 0 (int will round to whole numbers, float will keep decimals)
I like the sound of that. Away from my desk so can't test. Is it working for you? Thanks a lot.
Yes it works.
Nice. Have to say I'm really impressed with construct. Going to get a license asap. Thanks for the help.
yep it works. cheers mate.