A couple coding and development questions
Hello all! First off let me say thank you for reading! Now, I'll get right to it. I am creating an android 2d game and am already a bit of the way through. but I find myself at an interesting turn point.
I have a character who moves across the x axis along a VERY long background with multiple backgrounds moving at different speeds. The way I've chosen to do this is to have the character stay in place with a variable "speed" stat that determines how fast all the other elements move. My question is, is this the best way to do this?
My eventual intention is to have multiple areas that you transition to without stopping the game. I have read a few development books and have learned alot. But another problem is when I test my game I get good framerates (52 - 54) but I am noticing a frame dropping every few seconds or so. I feel that this is related to my previous question.
So to conclude, any help you have in the most concise and non hardware intensive way to accomplish these features? Again, thank you in advance for reading and any answers/help you can give.