Thread: Remove lagg.
View Single Post
Super Moderator
x2495iiii's Avatar
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 08-02-2010, 03: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
do nothing
Reply With Quote