Linerider

For questions about using Classic.

Post » Tue Jan 06, 2009 7:41 am

simple yet addictive
B
3
S
2
G
4
Posts: 271
Reputation: 2,017

Post » Tue Jan 06, 2009 11:36 am

Aah, I get a runtime out of memory error.. I'm guessing there's a memory leak in here somewhere, will post it on the tracker.. :(
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Tue Jan 06, 2009 4:26 pm

Of course there's a memory leak, the whole game is coded as one giant memory leak. As you hold down the mouse it creates a hundred objects every couple of seconds, and they are never deleted. Eventually you end up with tens of thousands of objects and then it dies.

Destroy objects when they go off the left of the screen!

Also, the layout doesn't need to be 99999x99999, it just makes the layout editor a pain to use. Make it 640x480 and enable 'unbounded scrolling', and you can go unto infinity (where infinity is 10^300 or something).
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Thu Jan 08, 2009 6:24 am

thanks
but if we destroy object left off the screen then how to replay the track?
B
2
S
1
G
4
Posts: 48
Reputation: 1,296

Previous

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests