collision
Posted: Sun May 24, 2009 8:42 pm
I'm making a game that is a side scroller, but I have a problem:
I am trying to make the view follow the main actor, the character you play as, and at the same time, I'm trying to create some objects that are supposed to stay on certain points in the screen. for example; I have a health bar that is in the lower left conrner of the screen. the trouble I encounter is making these actors follow the main actor properly:
1. I tried making them child actors of the main actor, but the problem I faced was z-depth. they automatically recieve the same z-depth of the main actor no matter what I do, and I need the health bar to have a maximum z-depth at all times so that you can see it throughout the entire game.
2. I tried to solve this problem by adding an invisible center actor which is always following the main actor, but the problem I encounter is that now the health bar shakes every time the main actor collides with the ground.
someone suggested I get a better collision system. what do I do?
I am trying to make the view follow the main actor, the character you play as, and at the same time, I'm trying to create some objects that are supposed to stay on certain points in the screen. for example; I have a health bar that is in the lower left conrner of the screen. the trouble I encounter is making these actors follow the main actor properly:
1. I tried making them child actors of the main actor, but the problem I faced was z-depth. they automatically recieve the same z-depth of the main actor no matter what I do, and I need the health bar to have a maximum z-depth at all times so that you can see it throughout the entire game.
2. I tried to solve this problem by adding an invisible center actor which is always following the main actor, but the problem I encounter is that now the health bar shakes every time the main actor collides with the ground.
someone suggested I get a better collision system. what do I do?