What challenge you most?

Discussion and feedback on Construct 2

Post » 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.
Image
B
108
S
24
G
18
Posts: 1,376
Reputation: 22,830

Post » Fri Dec 16, 2016 2:24 pm

B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Fri Dec 16, 2016 2:49 pm

99Instances2Go wrote:Something like this ?

https://drive.google.com/open?id=0B1SSuCVV8v74N2dYT3luQjNrVzg


Exactly =] Cleaver.
Image
B
108
S
24
G
18
Posts: 1,376
Reputation: 22,830

Post » Fri Dec 16, 2016 3:15 pm

B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Fri Dec 16, 2016 4:00 pm

https://translate.google.com/?source=gt ... %20Cleaver. :D

But what is challenging you these days?
Image
B
108
S
24
G
18
Posts: 1,376
Reputation: 22,830

Post » 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
28
Posts: 2,493
Reputation: 20,950

Post » Fri Dec 16, 2016 6:40 pm

I'm working in dissecting the events yet, but the global concept was learned.
Image
B
108
S
24
G
18
Posts: 1,376
Reputation: 22,830

Post » 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. 8-)
here is a small preview: http://www.scirra.com/arcade/fighting-g ... ight-12708
B
74
S
34
G
69
Posts: 235
Reputation: 40,471

Post » Sun Dec 18, 2016 12:34 am

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

Post » 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 :)
Image
B
108
S
24
G
18
Posts: 1,376
Reputation: 22,830

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 4 guests