C
chidsuey
Guest
I'm still trying to wrap my head around data structures, and would appreciate further elaboration. As far as I can tell, they seem to basically be arrays that have more functions available for quicker and easier access to points of data in them. But they also come with a memory warning. I don't understand the purpose of creating one (often the example is for an inventory) and then destroying it. What good is it if it just has to be destroyed so you don't run into memory issues?
I was thinking about using a ds_grid to keep track of my position in rooms on a map (think LoZ:LTTP) and also to help with spawning enemies only when I enter the room they're in, but if I have to keep destroying the grid, it doesn't seem like it's worth.
I know there's something I'm clearly missing, and as always, I appreciate the help. Thanks!
I was thinking about using a ds_grid to keep track of my position in rooms on a map (think LoZ:LTTP) and also to help with spawning enemies only when I enter the room they're in, but if I have to keep destroying the grid, it doesn't seem like it's worth.
I know there's something I'm clearly missing, and as always, I appreciate the help. Thanks!