Smaller text strings

Get help using Construct 3!

Post » Sun Jun 11, 2017 4:34 pm

Code: Select all
"{""x"":"& round(Player1.X) &",""y"":"& round(Player1.Y) &"}"


Is there any way I could shorten that string but still accurately send "x:90,y:100
B
34
S
23
G
49
Posts: 77
Reputation: 27,826

Post » Tue Jun 13, 2017 8:02 pm

bump
B
34
S
23
G
49
Posts: 77
Reputation: 27,826

Post » Tue Jun 13, 2017 8:28 pm

There's not a lot of context here. What's wrong with "90,100"?
ImageImageImage
B
71
S
22
G
259
Posts: 3,794
Reputation: 143,704

Post » Wed Jun 14, 2017 5:48 pm

blackhornet wrote:There's not a lot of context here. What's wrong with "90,100"?


Nothings wrong with it,but i was just wondering if i could get the same results that this gives me
Code: Select all
"{""x"":"& round(Player1.X) &",""y"":"& round(Player1.Y) &"}"

using less characters
B
34
S
23
G
49
Posts: 77
Reputation: 27,826

Post » Thu Jun 15, 2017 2:03 am

You could store the round() statements in a short local variable, but you are stuck with escaping the quotes.
www.simbucket.com - HTML5 Science Simulations / https://www.airconsole.com/#!play=com.n ... obotrumble - Robot Rumble on AirConsole
B
52
S
17
G
26
Posts: 436
Reputation: 18,092

Post » Thu Jun 15, 2017 9:16 pm

alright,thanks for the reply
B
34
S
23
G
49
Posts: 77
Reputation: 27,826


Return to How do I...?

Who is online

Users browsing this forum: No registered users and 0 guests