Is this a bug? Collision to only one side does not work
Posted: Thu May 25, 2006 11:08 pm
Hi,
I have a pretty tricky Problem here. I probably would need some kind of IF script, but I don’t the heck know how to do so.
Here’s what I want to do: I have a rider that gallops trough the desert.
There’s a big rock.
When the rider actor has collision with rock actor, he changes animation, the horse refuses to go forth and marches back- he goes back with the help of a path. At the end of the path, he changes animation again, gallops forward and if nothing is done, the same thing happens. The horse will refuse for ever.
But the player can strike the space bar. This will make the rider jump. Not via the gravitation thing, I could not manage to do a clean jump this way, mostly because the actor only jumps straight in the air, without moving forward (over the rock). So I created a jumping animation and made a new actor of it. So when space bar is put, rider actor is destroyed, jumper actor is created.
I did not make a collision action in the jumper actor, so he can jump over the rock. After jump is finished – jumper is destroyed, original rider actor is re-created.
But.. - and here’s my problem: the right or even bottom side of the rider-actor still collides with the rock and so, instead of galloping forth, the rider restarts the “refusing animation”.
Yes, I tried to avoid the thing by making the collision effective only to the right side of the rock actor – but , then, the whole thing doesn’t work: In this case, the changing animation (from galloping to refusing) does not happen. Is this a bug?
Anyway. Is there a possibility to get the rider over the rock, without any problem?
I have a pretty tricky Problem here. I probably would need some kind of IF script, but I don’t the heck know how to do so.
Here’s what I want to do: I have a rider that gallops trough the desert.
There’s a big rock.
When the rider actor has collision with rock actor, he changes animation, the horse refuses to go forth and marches back- he goes back with the help of a path. At the end of the path, he changes animation again, gallops forward and if nothing is done, the same thing happens. The horse will refuse for ever.
But the player can strike the space bar. This will make the rider jump. Not via the gravitation thing, I could not manage to do a clean jump this way, mostly because the actor only jumps straight in the air, without moving forward (over the rock). So I created a jumping animation and made a new actor of it. So when space bar is put, rider actor is destroyed, jumper actor is created.
I did not make a collision action in the jumper actor, so he can jump over the rock. After jump is finished – jumper is destroyed, original rider actor is re-created.
But.. - and here’s my problem: the right or even bottom side of the rider-actor still collides with the rock and so, instead of galloping forth, the rider restarts the “refusing animation”.
Yes, I tried to avoid the thing by making the collision effective only to the right side of the rock actor – but , then, the whole thing doesn’t work: In this case, the changing animation (from galloping to refusing) does not happen. Is this a bug?
Anyway. Is there a possibility to get the rider over the rock, without any problem?