To speed up a game by hiding objects not on the scree, use this code:
for a=1 to numobject
if object exist(a)=1
if object in screen(a)=1
if object visible(a)=0 then show object a
else
if object visible(a)=1 then hide object a
endif
endif
next a
Also, check to see how many polygons are in your objects. Too many can mean big slowdown. The size of the textures you are using also playes a role in how fast your program runs.
Good Luck
Xander Moser of Bolt Software
Firewall: Your Computer's First Defense - Real Time Strategy game
[href]
[/href]