How do I remove all sprites that I am not using in the proj?

Get help using Construct 2

Post » Sat Nov 19, 2016 1:53 am

So after conclusion why my game is so big so is it because I have images that I don't need that is being used.

Is there a way IN Construct 2 to choose all objects that are not being used, and delete them?
B
21
S
9
G
8
Posts: 188
Reputation: 6,069

Post » Sat Nov 19, 2016 2:15 am

In the project bar under objects you can right click on the object you want to get rid of and click delete. I'll upload a screen shot if you aren't sure what I mean. I don't know of a way to do this for all unused object types at once, but it shouldn't be too much hassle to right click and delete each one. Hope I helped! :D

Image
B
23
S
11
G
52
Posts: 137
Reputation: 27,881

Post » Sat Nov 19, 2016 2:25 am

My understanding is that, for instance, if you generate images/ sprites that are going off screen, they remain part of your game. Therefore you need to choose "destroy outside layout". You obviously know more about your game and structure than I do so my comments are just general in nature. Also, it may be helpful to say exactly which images are redundant or whether you are referring to images in your files.
B
21
S
14
G
15
Posts: 14
Reputation: 16,248

Post » Sat Nov 19, 2016 2:32 am

tallenwebdev wrote:In the project bar under objects you can right click on the object you want to get rid of and click delete. I'll upload a screen shot if you aren't sure what I mean. I don't know of a way to do this for all unused object types at once, but it shouldn't be too much hassle to right click and delete each one. Hope I helped! :D

Image


Yeah, but I have like 600 objects because I was testing around different sprites ect and never removed them because it was my first game, and now when I exported it, file was quite large, so I deleted some images that wasen't being used, and now the game wont load because missing files, (I tested multiple times now to readd images, delete images ect) and that is the problem!
B
21
S
9
G
8
Posts: 188
Reputation: 6,069

Post » Sat Nov 19, 2016 2:35 am

Oh, that is a lot of objects! I guess I would just recommend that next time you delete as you go, sorry I couldn't help out. Hope you find a solution!
B
23
S
11
G
52
Posts: 137
Reputation: 27,881

Post » Sat Nov 19, 2016 2:51 am

tallenwebdev wrote:Oh, that is a lot of objects! I guess I would just recommend that next time you delete as you go, sorry I couldn't help out. Hope you find a solution!


Yeah I know it's my fault, I am also stupid with the names.

"Spikes" is a main object in my game, I have like 50 different ones in my game that isn't being used because I was testing around as stated.

And they all have the name "Spike, spike1, spike2, sprite 32, sprite 66" ect...

For my next games I will always delete as I go and keep a good name scheme :lol:
B
21
S
9
G
8
Posts: 188
Reputation: 6,069

Post » Sat Nov 19, 2016 3:56 am

Another tip that may help you out next time is to iterate your game development. For example, if you make a change to your game save it as a copy of the original but as "name of your game_2". So, sequentially, you will know which is the latest iteration and if you encounter a problem in the current, you can delete it and re-load the last working one.

Never make huge edits and just save it as the original because at some point along the line, you will encounter serious challenges that will either take you time to solve or make you you want to give up altogether.

Programming in general can be frustrating quite a lot but common sense ideas can save you a lot of trouble.
B
21
S
14
G
15
Posts: 14
Reputation: 16,248


Return to How do I....?

Who is online

Users browsing this forum: vutankhoa2015 and 23 guests