How do I Load sprite/images before a layout starts.

Get help using Construct 2

Post » Tue Oct 27, 2015 9:24 am

Hello boys, at the start of my game the fps seems to go from 55 for 1 or 2 seconds then stays at 60 fps from then on. I have bullet behavior objects moving right at the start. Is there anyway to avoid that drop in fps? Is it loading images at the start or something? I made a custom layout for loading different other layouts but im not sure how i can use it to load the images of a layout before a layout even starts to avoid that drop in fps at the begining?

Will creating those objects on the loading layout stay loaded if the layout changes to the main game layout?
B
13
S
4
Posts: 29
Reputation: 933

Post » Tue Oct 27, 2015 4:59 pm

Are the bullets actually part of your game? Or just some kind of intro?
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

Post » Thu Oct 29, 2015 7:22 am

Well I do got a lot of things with Bullet behavior at the start. Building a shoot em up without using the System Scroll Screen and Parallax Layers. So pretty much everything is flying passed the screen and being destroyed at -x positions. Wonder if its just better to go with parallax effect?

So I have noticed that if a sprite loads in a layout then its image is already loaded in the next layout if it exist there. I have title and continue screen so i was able to notice that the drop in fps was only happening on the first start up for the gameplay layout.
B
13
S
4
Posts: 29
Reputation: 933

Post » Tue Nov 03, 2015 12:31 am

Are you tracking everything on the entire map or keeping the math localized to what is on screen? Have you tested on another machine?
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857


Return to How do I....?

Who is online

Users browsing this forum: max2612 and 3 guests