How do I make grids of varying sizes using arrays?

Just started using Construct 2? Post your questions here

Post » Wed Mar 19, 2014 2:53 am

Hello. Lurker for several months and first-time poster. I've been trying to wrap my mind around arrays but I'm kinda stuck on how to apply them in my projects. I am currently attempting to do something really simple : build a grid using arrays and loops and I'm currently stumped. Anyone out there with a tutorial to spare or an example to show? Any help would be greatly appreciated. :)
B
4
Posts: 2
Reputation: 204

Post » Wed Mar 19, 2014 3:13 am

If you go to the Tutorials section and type in "arrays" under search , you will find an abundance of info relative to your inquiry .
What I know would fill a Book , what I don't know would fill a Library
B
37
S
12
G
29
Posts: 331
Reputation: 16,499

Post » Wed Mar 19, 2014 3:26 am

Oh I have I have looked at them. Did that long before this post. I've seen only two strictly applying to arrays and neither gave me much help applying to what I'm trying to do.
B
4
Posts: 2
Reputation: 204

Post » Wed Mar 19, 2014 6:09 pm

Use the array condition "For each element" and then create your grid sprite on "Array.CurX * Sprite.Width, Array.CurY * Sprite.Height"
B
84
S
22
G
15
Posts: 1,039
Reputation: 15,249


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest