• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] 2d-array in GUI?

Status
Not open for further replies.
Level 4
Joined
Jun 21, 2007
Messages
116
declare the normal array of size sizex * sizey
when you want to use it, lets say you named it arr just do arr[y*sizex+x]
 
Level 2
Joined
Jun 16, 2007
Messages
10
yeah. been doing a lot of java work for school. Im starting to learn jass at the moment, but i dont want to slow down the work on my map to spend all of my time going over jass functions.

Thank you for your votes of confidence =)

i'll try tinkering with atropos's idea, but i foresee overlaps in my pointers.

I know jass isnt a full language...but @)(&% i hope the second language really is the hardest. Cant get it out of my head "well, i could do ...no..no I cant, I dont know how yet.."

edit: ah, only anything times 1 overlaps...ok so just make x and y 1 larger than need be and use + 1 when thinking over as a 2d array?

edit2: doh...nevermind forgot to change what i was adding
 
Last edited:
Status
Not open for further replies.
Top