# What challenge you most?

Discussion and feedback on Construct 2

### » Thu Dec 15, 2016 10:55 am

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.
B
110
S
24
G
18
Posts: 1,391
Reputation: 22,997

### » Fri Dec 16, 2016 2:24 pm

B
33
S
18
G
29
Posts: 2,493
Reputation: 21,450

### » Fri Dec 16, 2016 2:49 pm

99Instances2Go wrote:Something like this ?

Exactly =] Cleaver.
B
110
S
24
G
18
Posts: 1,391
Reputation: 22,997

### » Fri Dec 16, 2016 3:15 pm

B
33
S
18
G
29
Posts: 2,493
Reputation: 21,450

### » Fri Dec 16, 2016 4:00 pm

But what is challenging you these days?
B
110
S
24
G
18
Posts: 1,391
Reputation: 22,997

### » Fri Dec 16, 2016 6:20 pm

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.
B
33
S
18
G
29
Posts: 2,493
Reputation: 21,450

### » Fri Dec 16, 2016 6:40 pm

I'm working in dissecting the events yet, but the global concept was learned.
B
110
S
24
G
18
Posts: 1,391
Reputation: 22,997

### » Sat Dec 17, 2016 1:46 pm

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.
here is a small preview: http://www.scirra.com/arcade/fighting-g ... ight-12708
B
77
S
36
G
69
Posts: 249
Reputation: 40,774

### » Sun Dec 18, 2016 12:34 am

Animations for sure :/ currently working on a fighting game
B
60
S
32
G
5
Posts: 118
Reputation: 8,327

### » Mon Dec 19, 2016 10:33 am

ishmaelmoreno wrote:Animations for sure :/ currently working on a fighting game

Did you know about Super Cosplay War Ultra? It's a good source for reference
B
110
S
24
G
18
Posts: 1,391
Reputation: 22,997

Next