How do I fill an array with sprites and manipulate them

Get help using Construct 2

Post » Wed Jun 15, 2016 3:59 pm

If that is wat you are creating, then i can not think at any reason to use an array.
Instances and there instance variables are allready basic arrays.

https://www.dropbox.com/s/630p82827qo3w ... .capx?dl=0
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Thu Jun 16, 2016 8:16 am

@99Instances2Go You´re crazy! :)

I thought it would be the best way to handle this with arrays...maybe for storing the array values compact and manipulate them also compact. Funny i thought i have to use arrays for the footsteps and for the inventory book...but both thoughts where false. Thank you very much for your imput. It makes me better in understanding construct2!

Very nice support! AWESOME!
B
11
S
2
Posts: 163
Reputation: 1,123

Post » Thu Jun 16, 2016 8:41 am

Well, arrays are the way to go when you have to deal with lists AND when they un-complicate things.

But to overtrow the easy and straightforward use of instances they are usaly not the best choice.

Instances are allready a LIST of objects. If you give them instance varibales, you have a LIST of variables. Hence, that is in fact an array. Only, this array is locked to a particulair object.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Wed Aug 03, 2016 6:50 pm

Template in store if that helps - 1. Layout : summons random hero and pushes into arrays
2. A inventory that lists all heroes + delete function

https://www.scirra.com/store/royalty-fr ... ntory-2685
B
7
S
1
Posts: 10
Reputation: 479

Post » Thu Aug 04, 2016 8:47 am

@All

Thank you very much for your great support! :)
B
11
S
2
Posts: 163
Reputation: 1,123

Previous

Return to How do I....?

Who is online

Users browsing this forum: Seruza and 9 guests