Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / [SOLVED] Does AGK Studio Have a Carriage Return Character?

Author
Message
boldpaste2
User Offline
Joined: 4th Apr 2019
Location:
Posted: 13th Feb 2020 23:29
Hey guys!

Hope im posting this in the right place. I got what might be "a noob question". Well, I am a noob so for me perfectly appropriate . Surfed the net and guides but could not find what I was looking for.

Here is some pseudo code... Can AppGameKit Studio continue a line of code onto the next link with a special character (I think its called a Carriage Return Character)? I asks this because long conditionals or formulas are kinda difficult to read without it.

Essential... This...
If A = 0 and B = 0 and C = 0 and D = 0 and E = 0 and F = 0 and G = 0 and H = 0 and I = 0

Into this...
If A = 0 and_
B = 0 and_
C = 0 and_
D = 0 and_
E = 0 and_
F = 0 and_
G = 0 and_
H = 0 and_
I = 0

The author of this post has marked a post as an answer.

Go to answer

fubarpk
Moderator
15
Years of Service
User Offline
Joined: 11th Jan 2005
Location: Adelaide
Posted: 13th Feb 2020 23:52
Chr(13)

fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
boldpaste2
User Offline
Joined: 4th Apr 2019
Location:
Posted: 13th Feb 2020 23:59
Hmm...

I tried turning this



Into this...



Got this...
Error: Incompatible types "Integer" and "string"

I think I did something incorrectly.
fubarpk
Moderator
15
Years of Service
User Offline
Joined: 11th Jan 2005
Location: Adelaide
Posted: 14th Feb 2020 04:55 Edited at: 14th Feb 2020 04:57
This post has been marked by the post author as the answer.
sorry I thought you wanted a string
like A$="line 1"+chr(13)+"line 2"+chr(13)+"line 3"
print (a$)

and you cant separate conditions over multiple lines like that the ide isn't designed for it

fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
boldpaste2
User Offline
Joined: 4th Apr 2019
Location:
Posted: 15th Feb 2020 00:07
Thanks fubarpk, It would certainly be a nice thing to have though.

Login to post a reply

Server time is: 2020-02-29 07:51:57
Your offset time is: 2020-02-29 07:51:57