Runner Game Problem
Mattcus
Member Posts: 85
So i'm making a runner game, Like an infinite runner but not infinite, and I have a bit of a problem.
I don't know whether to to make the player stay still and the background move, or the background stay still and the player move.
I've tried both and have run into problems for both.
If I make the background stay still and the player move, the problems I run into include:
The fact I have multiple actors for the player, that need to stay in the same positions, and the positions of some of those actors need to be able to change.
for example: The Character is made up of multiple actors so you can customise different parts of it. also i have invisible actors in front of the player, including one for the range of the weapon, which needs to be able to be upgraded.
Because the main weapon the player uses is a Yo-Yo, it moves out to where the player touches and then returns the the player character, when the player is moving, the Yo-Yo doesn't work properly.
However, making the background not move can be good because, I plan to make several different levels, and it would be easier if I could just design and build all of the levels, without having every element of the level move towards the player.
If I make the background move and the player stay still, then some problems I have run into include:
It will be harder to design a large number of levels, as I need to make sure everything moves at the right speed and such.
Because the player has physics, and the ground, the player pushes the ground down and ruins the scene. I haven't been able to prevent this from happening yet.
Making the background move can be good, because I can have the player character made up of multiple actors, and position them in the exact, correct spot. I can also have invisible actors in front of and around the player for various functions.
If someone can recommend which way I should do it, I would really appreciate it. I would prefer to have the player move, and the background still, so I can make heaps of different levels easily. So if anyone can think of solutions to the problems I face in making the player move, please post them as well.
Thanks in advance.
I don't know whether to to make the player stay still and the background move, or the background stay still and the player move.
I've tried both and have run into problems for both.
If I make the background stay still and the player move, the problems I run into include:
The fact I have multiple actors for the player, that need to stay in the same positions, and the positions of some of those actors need to be able to change.
for example: The Character is made up of multiple actors so you can customise different parts of it. also i have invisible actors in front of the player, including one for the range of the weapon, which needs to be able to be upgraded.
Because the main weapon the player uses is a Yo-Yo, it moves out to where the player touches and then returns the the player character, when the player is moving, the Yo-Yo doesn't work properly.
However, making the background not move can be good because, I plan to make several different levels, and it would be easier if I could just design and build all of the levels, without having every element of the level move towards the player.
If I make the background move and the player stay still, then some problems I have run into include:
It will be harder to design a large number of levels, as I need to make sure everything moves at the right speed and such.
Because the player has physics, and the ground, the player pushes the ground down and ruins the scene. I haven't been able to prevent this from happening yet.
Making the background move can be good, because I can have the player character made up of multiple actors, and position them in the exact, correct spot. I can also have invisible actors in front of and around the player for various functions.
If someone can recommend which way I should do it, I would really appreciate it. I would prefer to have the player move, and the background still, so I can make heaps of different levels easily. So if anyone can think of solutions to the problems I face in making the player move, please post them as well.
Thanks in advance.