ragingdemonz
Member
So i've been wondering now for a while. What exactly is the speed difference between the 2?
The reason i'm asking is because i've run into a problem with instance_place, where it only returns the id of one of the attacking parents. I have 2 objects a bullet and melee hit, which act under the AtkPar parent. I realized now i should've used instance_place_list to gather the list of attacking objects, because if 2 AtkPar objects attack at the same time only one of the Id's would be returned.
The issue is though that you would have to create a new ds_list every single time the attacking object collides with the enemy.
I originally wanted to make one list for each enemy upon creation but, every-time an enemy spawns it would have to create a new ds_list as well. Now i'm not entirely sure how many lists you can make before the game slows down dramatically, but wouldn't it be more efficient to use a collision event instead?
I'm not sure of the inner workings of how the collision event works but the collision event takes all ID's indiscriminately and leaves a smaller footprint in terms of not having to create a local list and then destroying it at the end. I could be overthinking things. But i wanted to know my options beforehand, before taking the extra steps of converting it to instance_place_list.
But what exactly are the benefits of using instance_place_list vs collision event?
The reason i'm asking is because i've run into a problem with instance_place, where it only returns the id of one of the attacking parents. I have 2 objects a bullet and melee hit, which act under the AtkPar parent. I realized now i should've used instance_place_list to gather the list of attacking objects, because if 2 AtkPar objects attack at the same time only one of the Id's would be returned.
The issue is though that you would have to create a new ds_list every single time the attacking object collides with the enemy.
I originally wanted to make one list for each enemy upon creation but, every-time an enemy spawns it would have to create a new ds_list as well. Now i'm not entirely sure how many lists you can make before the game slows down dramatically, but wouldn't it be more efficient to use a collision event instead?
I'm not sure of the inner workings of how the collision event works but the collision event takes all ID's indiscriminately and leaves a smaller footprint in terms of not having to create a local list and then destroying it at the end. I could be overthinking things. But i wanted to know my options beforehand, before taking the extra steps of converting it to instance_place_list.
But what exactly are the benefits of using instance_place_list vs collision event?