Legacy GM Low FPS with multiple objects

DarK_SaCoR

Member
I've a problem with my game, I've a level editor in game and I've create a level with a full of enemies (I know that the community it will). My problems persist with check collision because I need check it for the animations and gravity.

Example:
if (!death && place_meeting(x, y-1, par_stack)){
animation = ANIM_HOLD;
}

Think that 161 enemies can be placed... How could I optimize this process?

twini.png
 
T

Taddio

Guest
Is it your player, or your enemies that check for collision?
1 player checking every frame is someting, having 160 checking every frame is...well probably around 160x more intensive (really, I don't know, I could be wrong on this one)
 
Top