Summer Programming 2014 – Dev. Post 8
|
The collision manager is complete but with it comes a few new problems. When there are too amny objects on screen it becomes a huge burden to check the collisions for everything. Part of this reason might be the fact that there’s no delay between the player’s shots so holding down the button for a moment fires about a hundred shots. If I try to make sure that there aren’t too many hitboxes in action at once there should be no problem, otherwise I’ll just have to remake the thing in a more efficent fashion. What I’m doing now is to go through every single hitbox and check those against hevery single hitbox again (they cannot check themselves) to see if the collide. I’m not sure if there is a better method for doing this but if there is I’d like to know somehow. Other than that, I’ve made a simple behavious script for the enemy, it will now move inwards the screen and then move back out again. |