0
Need ideas and help on my tile game project.
So I have been building a tile game in my free time for about a month. I ran into a little issue with arrays on how I can remove an exact index in an array without leaving empty holes. I wanted to reach out to the community and see some syntax and examples on how to achieve this. Thanks in advance.
7 odpowiedzi
+ 1
What do you mean by "removing an exact index in an array without leaving empty holes", any example please!?
+ 1
I figured it out. Thanks for your time.
+ 1
array.splice(position,number-of-elements-to-remove)
0
I have to iterate over an array containg objects to find a matching parameter and remove that object from the array.
0
Thanks man. Ill check them out.
Sometimes all this code gets overwhelming but i end up figuring it out lol.