10 separate sprites use same memory as 1 sprite 10 frames?

Discussion and feedback on Construct 2

Post » Thu May 22, 2014 2:54 pm

I am looking for ways to make my game faster and was wonder this question.

Do 10 separate sprites use the same amount of memory as 1 sprite with 10 frames?
B
10
S
2
Posts: 30
Reputation: 722

Post » Thu May 22, 2014 4:46 pm

Yes.
You can check this by using the debug = image memory.
Using 1 sprite with 10 frames is easier than 10 sprites if you want to use behaviors or use it like background or graphics.
But if you delete any frame except the final frame you must go back and check all the frames on the canvas because they will change.
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Fri May 23, 2014 10:23 am

@A0Nasser

Another Question:
If I have an image that is 256x256 and I size it in properties to 128x128, when it loads in the game will it take the memory of a 256x256 or 128x128 image?
B
10
S
2
Posts: 30
Reputation: 722

Post » Fri May 23, 2014 11:12 am

@Firewires
It will take 256x256.

Make this test: lets say we want to make 1000x1000 black sprite inside C2.
Making sprite with this size will be big.
But Making 20x20 sprite then change the size with the properties the image size will be very small and the quality is the same.
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Fri May 23, 2014 12:36 pm

I appreciate you responding to my questions. You are a big help
B
10
S
2
Posts: 30
Reputation: 722


Return to Construct 2 General

Who is online

Users browsing this forum: A2D and 2 guests