I have played many klik games in past few days, which have scrolling problems. They are platformer, which run nicely until the map starts scrolling. Well I'm keeping that pretty annoying and I don't think none wants to play games like that. Also waiting for HWA is not an excuse.

I made a video of this, but it was 900 mb, so I made an article of this. In this article I'm showing ways to do games, which are lag free. Also if you want example of lagging game. Download Martin Bodger's and Xrat's Tourey round 1 game, Spirit gazer. (No offence to martin bodger or xrat, but your game is good teaching material!)

1.More objects, more slower game
-You can have millions of backdrops, because they don't use much memory.
-Bigger needs more memory than small.
-More objects take much more memory than 1 big.
-Cloning makes new object, but duplicate doesn't.
-This is hard to explain so I give an example of this. You make Custom platform movement with 4 collision boxes. But you can do the same with PMO without collison boxes! (Hope you understood)

2.Resizing is always bad! Bigger objects more memory. Resized objects even more memory.
3.Fastloop isn't so bad if you just for example place tiles with it, but if you make player/enemies movement with it (and more things), it can slow game a lot.
4/5.Always/Every/events: These I took, because the can slow game a bit (really small but slowing). So I added this only because you can generate code which won't be like this.

If possible untick create object at start[*]. Add triggers and stuff to create the needed objects, so it eases the beginning of the game and reduses lots of lag.

- - - - - - - - - - - - -
Tips n' trick
- - - - - - - - - - - - -

1. Do not create any active objects at start, exept player, and all near the screen, also triggers. Now code so, that when player collides trigger, then second set of active objects are created (remember to destroy trigger ). This reduces lag a lot in bigger maps.

2. If you are running on 400-500 objects, then it would be good to have some particle restriction system like.

I have mom's old sucky laptop, where is good to test games. (Thought I havn't done any ) But it is good to be make games with easier lay out, because when ppl says that hey my comp doesn't run it, then would be damn painful, to start to fix things.

Please, even if your game runs fine on your computer, if you're going to release it publicly, do everything you can to make it run smoothly on older computers.
I have a slow computer, and find a lot of quite basic games don't run smoothly, when they could if the advice in this article had been followed.Comment edited by Sketchy on 9/21/2008