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 / Read and Data

Author
Message
Barmyfluid
1
Years of Service
User Offline
Joined: 20th Jul 2018
Location:
Posted: 26th Jun 2019 14:02
I was a bit surprised not to find the standard BASIC Read and Data commands in AKG, those with a For loop are so useful and readable (to me at least). I know you can read external files, JSON strings etc but all seems a bit unwieldy, am I missing something?
fubarpk
Moderator
14
Years of Service
User Offline
Joined: 11th Jan 2005
Location: Adelaide
Posted: 26th Jun 2019 14:10
I figure its how well it interprets the code into machine code
but you can get around the data issue by using arrays
for example how I create a ship in asteroids
fubarpk
fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
Barmyfluid
1
Years of Service
User Offline
Joined: 20th Jul 2018
Location:
Posted: 26th Jun 2019 19:52
Ah, I'd tried similar but I couldn't get it to work, didn't realise you could omit DIM.



Thanks
janbo
10
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 27th Jul 2019 16:17 Edited at: 27th Jul 2019 16:17
But we can't do the same with two Dimensional arrays right ?
like so ?!
blink0k
AGK Developer
Gold Codemaster
6
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 29th Jul 2019 11:14
You could do it with json like so
janbo
10
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 29th Jul 2019 19:03
Good point.
Never played with AGK's JSON feature. Thanks

Login to post a reply

Server time is: 2019-09-20 05:14:31
Your offset time is: 2019-09-20 05:14:31