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.

Author
Message
Chmava
11
Years of Service
User Offline
Joined: 20th Jun 2013
Location:
Posted: 26th Aug 2015 22:34
How do i get this to work?



Infact, is AppGameKit even capable of doing this?
Hodgey
15
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 26th Aug 2015 22:46
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 26th Aug 2015 22:48
what is that ? "_gameMap1[xX, yY, zZ] as __gameMapType"

u want do this?
global _gameMap1 as __gameMapType[201, 201, 7]

AGK (Steam) V2 Beta .. : Windows 10 Pro, 8.1 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
Chmava
11
Years of Service
User Offline
Joined: 20th Jun 2013
Location:
Posted: 26th Aug 2015 23:22
Ohhh...

Nothing here mention about this...
http://www.appgamekit.com/documentation/guides/12_array_changes.htm

Atleast... not that it could not be multi dimensional...

It like, totally did not occur to me, hahaha...

Thank You!
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 26th Aug 2015 23:58 Edited at: 26th Aug 2015 23:58
its often so that what u need you did not find in docu direct.

but i see there this
myArray as myType[3]
and this
myArray as integer[5,10,15]
and much blah blah blah

AGK (Steam) V2 Beta .. : Windows 10 Pro, 8.1 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 29th Aug 2015 14:56
Shouldn't it be...



Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 29th Aug 2015 17:03
in agk v2 we have old and new array syntax.

AGK (Steam) V2 Beta .. : Windows 10 Pro, 8.1 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
Chmava
11
Years of Service
User Offline
Joined: 20th Jun 2013
Location:
Posted: 31st Aug 2015 15:39
Ohhh...!

That explain why i could not get it to work!
It was missing a 'DIM'.....
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 31st Aug 2015 16:24
No it doesn't and no you weren't.

The correct way to do it was pointed out to you in the second and third posts.
Dim has only been left in AGK2 for backwards compatibility. Why that keyword has but no others have, I don't know. But that is what it say in the documentation.

AGK V2 user - Tier 1 (mostly)
Chmava
11
Years of Service
User Offline
Joined: 20th Jun 2013
Location:
Posted: 5th Sep 2015 16:17
yes i was, ended up putting in a loop when it was not working...
I have used this array before in older application i have programmed.

and yes, i was reading and using the new array with old knowledge and... well...

Login to post a reply

Server time is: 2024-11-16 20:56:25
Your offset time is: 2024-11-16 20:56:25