One big image or a few smaller ones spawning
Ali_Wood
Member Posts: 52
Hi,
I am trying to optimise my game as it's a little laggy at the moment. I've converted as many attributes into tables as possible and removed timers and so on.
My game has three scrolling layers moving at different speeds to give it a 3D effect
What i would like to know is, is it better to have one really long image for the floor and middle layer that scrolls? Or to have it broken up into smaller sections that spawns the same actor behind it and then destroy itself when it's off the screen?
Here are the pictures of my level before it starts using the spawning method and one picture with the level in play to give you an idea of how it looks
I am trying to optimise my game as it's a little laggy at the moment. I've converted as many attributes into tables as possible and removed timers and so on.
My game has three scrolling layers moving at different speeds to give it a 3D effect
What i would like to know is, is it better to have one really long image for the floor and middle layer that scrolls? Or to have it broken up into smaller sections that spawns the same actor behind it and then destroy itself when it's off the screen?
Here are the pictures of my level before it starts using the spawning method and one picture with the level in play to give you an idea of how it looks
Comments
If you use Imgur.com just copy the Html embed code
Need Help? Email Me | Templates | Full Game Source Code
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx