maxman
Well-known member
I have no problem when it comes to platformers starting from either left to right or vice versa. It's where you have enemies spawn at the specific X coords before they do. Plus, the direction value in the level is set as both. I've gotten used to platforming since Unelmia. However, when I spawn all entities including types enemy, trap, obstacle, and other stuff without group, if I want to move from bottom to top, the lag starts to happen. The level is already scrollable though. So, I have to use group for limiting how many enemies should spawn in a certain amount of its max value, leaving 4-7 minumum within the group.
Even though I have many other non-enemy type entities placed outside of group, there are still so many sounds around coming from them which you can hardly hear anything. Let's say, for example, the ones with sounds are trap type entities. One of them is the spikes. The spikes do play its idle with sound.
What I wanna do is not to have many spawned traps play too many sounds since they override some or other sounds. Plus, when I'm far away from the trap, the trap plays its idle with sound.
Even when I have the level spawn too many existing entities without grouping them, it becomes laggy.
What I'm very confused about is putting the trap type entities in group, as group probably requires you to defeat all the existing ones especially enemies until you finish it. I know I'm not going to attack a trap type entity, but I don't know if having the trap type in group would be necessary or not for certain spawning points, especially you're far away below them until you go near them (within the same range). Should I put all obstacle and trap type ones into groups? If I put them into groups, it would prevent lagging and not override sounds, but I worry about not proceeding to the next group of spawns after.
Code:
group 7 45
at 0
Even though I have many other non-enemy type entities placed outside of group, there are still so many sounds around coming from them which you can hardly hear anything. Let's say, for example, the ones with sounds are trap type entities. One of them is the spikes. The spikes do play its idle with sound.
What I wanna do is not to have many spawned traps play too many sounds since they override some or other sounds. Plus, when I'm far away from the trap, the trap plays its idle with sound.
Even when I have the level spawn too many existing entities without grouping them, it becomes laggy.
What I'm very confused about is putting the trap type entities in group, as group probably requires you to defeat all the existing ones especially enemies until you finish it. I know I'm not going to attack a trap type entity, but I don't know if having the trap type in group would be necessary or not for certain spawning points, especially you're far away below them until you go near them (within the same range). Should I put all obstacle and trap type ones into groups? If I put them into groups, it would prevent lagging and not override sounds, but I worry about not proceeding to the next group of spawns after.
Last edited: