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.

AppGameKit Classic Chat / Copying arrays, or maybe a string manipulation?

Author
Message
Zen Jones
7
Years of Service
User Offline
Joined: 1st Jul 2017
Location:
Posted: 2nd Jul 2017 04:34
So I dumped the standard scrabble tiles into an array, combination of 100 letters a-z in the standard scrabble distribution, plus two blanks. I am confused about exactly what version of AppGameKit I have? regardless, can't seem to figure out how to copy the array into a second array. simply doing dim workingArray = HardcodeArray doesn't do it.

In my native language I use a string, and I could use a string here but the string functions seem to be limited. When a new game round starts, the tileset is copied from the hardcoded string into a working string that I manipulate. I randomly pull characters from my working string into a third string, and remove the characters from the working string as they are drawn so I can't draw more than the right letter ratio. Then when the third string is the right length, I do further manipulation to it to assign bonus point tiles to randomly selected letters in that string, based on index locations.

I've been spending a lot of time reading the manual, and watching tutorial videos (both supplied and searching youtube) and I can't seem to figure out how to get the array to work as needed, or even the right string functions to build my game set. If anyone can point me in the right direction I'd really appreciate it.

Thanks for reading.
- Zen
hendron
9
Years of Service
User Offline
Joined: 20th Dec 2015
Location:
Posted: 3rd Jul 2017 20:55
Hi Zen, sorry if I'm misunderstanding what you're asking, but if you're just wanting to copy one array into another, you can do this in AGK2



I'm not very familiar with AGK1, but I think you might have to do the copy manually, IE



You can find out which version of AppGameKit you're running by going to help > about in the IDE. If you're on AGK2 (latest version) it should say AppGameKit IDE 2017.05.15 at the top.

Login to post a reply

Server time is: 2025-06-01 23:25:23
Your offset time is: 2025-06-01 23:25:23