Array.Pop strange behavior

0 favourites
  • 2 posts
From the Asset Store
Relax and relieve stress by popping bubbles in Fidget Anti- Stress Releaser!
  • Hi,

    I was playing with the array and poping an item in an array increase the number of element of that is normal ?

    I mean once i poped it, it should have removed it not adding element to it. The element is empty.. but it is still added.

    But i have a guess which is probably the size of the array that incrementing. Is there a way to avoid this ? even reducing the array size after the pop doesn't work.


  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Nevermind, look like its my lack of knowledge in the array object. To have initially zero element you must set..

    width: 0

    height: 1

    depth: 1

    if you set all zero everywhere, it won't add anything to the array.. which make sense since there no height or depth. At least you need 1 height and 1 depth to represent a 1D array.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)