# What challenge you most?

0 favourites
• 12 posts
From the Asset Store
Control your space ship in a weird space-time environment and destroy as many enemies as you can!
• I'm dealing with arrays, this is at least a torment =

Next time I will read the entire wikia to understand how to solve a matrix using arrays.

The problem happened when I was doing an autotile behavior, where each existent tile was stored in the array with 0, else -1, then a "For each ordered" event, it should pick the tile and count how many tiles are surrounding it, sum a number for each position.

For example, a random tile in the looping event will check on the left upper corner, if it's existent, add 1 and make the same for every surround existent tiles, but each one have a number, upper is 2, right upper corner is 3 and so on.

1-2-3

4-5-6

7-8-9

It will give the array slot a sum, where the sum can be related to a Tile ID, so, I did a dictionary to relate it.

If the sum return, for example, is 6, I know it's the left upper corner, because it's being surrounded by 2 and 4, so, 2+4=6

The problem is how to solve the array to achieve it, I tried to to use tilemap.at(array.curx-1,array.cury-1) to check the left upper corner and it didn't checked correctly, also, didn't made the sum.

Well, this is my labor for a while, while I don't figure out how arrays works.

• Something like this ?

Exactly =] Cleaver.

• Subscribe to Construct videos now
• https://translate.google.com/?source=gt ... %20Cleaver. <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

But what is challenging you these days?

• Work mostly, and solving questions here, regarding things that i have not ever done myself.

But more important, are you closer now to understanding arrays? And did you see the little tricks?

Like making patterns in the array with %, or those handy little globals for marking positions.

• ## Try Construct 3

Develop games in your browser. Powerful, performant & highly capable.

Construct 3 users don't see these ads
• I'm working in dissecting the events yet, but the global concept was learned.

• my challenges right now:

• draw some assets for a platformer game, the worst part is to do the animations..
• make a fight game like the classics: street fighter 2 and mortal kombat.

I thought, I wasnt able to code the AI, but now I am figuring out on how to deal with it. <img src="{SMILIES_PATH}/icon_cool.gif" alt="8-)" title="Cool">

here is a small preview: http://www.scirra.com/arcade/fighting-g ... ight-12708

• Animations for sure :/ currently working on a fighting game

• Animations for sure :/ currently working on a fighting game

Did you know about Super Cosplay War Ultra? It's a good source for reference

• TELLES0808 nope i don't but shall check it out. Thank you

• Arrays are my worst enemy

• 12 posts