New to array. Need some assistance

0 favourites
  • 1 posts
From the Asset Store
Kids Game
$49 USD
New Sounds Added Update: 115 new sound effects added for no additional cost!
  • Assume all these:

    • objects A,B,C,D are in a family
    • store the number of the Family objects using FAMILY_NAME.Count (store in global variable)
    • there is only 1 instance of each objects A,B,C,D
    • events should still work even if not all 4 object types have instances (meaning no instances)
    • the widths and heights are corresponding to the objects in their row, of course

    Example:

    situation 1:

    1 instance object A

    situation 2:

    1 instance object A

    1 instance object B

    situation 3:

    1 instance object A

    1 instance object B

    1 instance object C

    situation 4:

    1 instance object A

    1 instance object B

    1 instance object C

    1 instance object D

    or any other combination of the objects as long as there is each existing object only has 1 instance, no more than that.

    the events should work in any of the 4 situations using the family to code. The number of cells would adjust according to the number of objects.

    please help. thanks.

    and question, if I will use only a 2-dimensional array, should I set Z to 1 or 0?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)