
08-02-2010, 04:09 PM
-Set objects that aren't visible (too far away, behind buildings, etc) to isShowing = false
-Use pauses in collision detection.
Loop infinity times
check for collision
wait .01 seconds
-Use png billboards instead of objects as boundaries (makes collision detection easier too)
-Avoid using simultaneous loops (if there's a collision that can't possibly happen while another one is happening, make sure they're not both running)
or better yet
-Make collision loops so they only run when necessary
Loop infinity times
if character is within 1 meter of building
collision detection
else
do nothing
|