Can I dump previously visited parts of a level?

Get help using Construct 2

Post » Tue Aug 27, 2013 1:38 am

Hi all! I have been having some lag issues lately most likely due to how long my level is getting. So I thought of two things that when working together might help. But I would like your help and opinion. Firstly creating a series of gates throughout my level that my main sprite could not pass through until he finished all of the objectives between each one. Secondly after he passed through a gate have it dump all of the level data behind him and not allow him to go back unless the layout was restarted.
   
   Would that help lessen the lag that I get half-way through my current level?(which I am still expanding further) And if so how would I go about dumping parts of the level data within the same layout? I'm pretty sure I know how to setup the gates it's just the level dumping that I'm not sure how to do. Any help would be greatly appreciated! Thanks!
B
8
S
1
Posts: 42
Reputation: 1,159

Post » Tue Aug 27, 2013 5:45 am

The easiest way I can think to kill things the play has passed is to have an object decently far offscreen -to the left if the player is walking to the right-. You could make the object a large, vertical rectangle that kills everything in a family it touches. Just make sure to set parallax to 0,0!

But honestly their are other ways to resolve performances issues too. Make sure to check a few of those out. Can't hurt, right.

Best of luck!!
B
52
S
13
G
7
Posts: 147
Reputation: 6,800

Post » Wed Aug 28, 2013 8:38 am

Thanks for that idea basspenguin! What else do you think I could do to resolve my lag problems? My system is a fairly nice gaming PC so I'm not lacking at all hardware wise I don't think. Currently Construct 2 says the approx download size of my game is 129.6 mb and memory usage is at 661.4 mb, so it's kinda big but I have 8gigs of RAM an i3-2120 3.3ghz CPU and a GTX 660 Ti GPU which I'm sure it barely uses. Also it's coming off of a sata II SSD. Is there a thread on these forums that has a list of things to do to increase performance? When you said "But honestly their are other ways to resolve performances issues too. Make sure to check a few of those out." What were you referring to? Please let me know soon and thanks again!
B
8
S
1
Posts: 42
Reputation: 1,159


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 41 guests