Can I dump previously visited parts of a level?

  • 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! <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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!!

  • 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! <img src="smileys/smiley1.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)