Page 1 of 1

collision confusion

PostPosted: Sun Feb 08, 2009 2:02 am
by j2graves
one actor I have in a game is supposed to change to one animation while colliding with the top/bottom of another actor, and change to a different animation when colliding with the left/right of the same actor. why then, does it tend to get "confused" when it collides and continuously turns between both animations when it collides with the actor from any side?

Re: collision confusion

PostPosted: Sun Feb 08, 2009 4:18 am
by DST
A couple of possibilities

If you are using physical response, you might be having this issue (this frame does not draw, because pr corrects the positions before screen output, but this is what would be happening in that split second).
redblue.png
figure1



Note too that position is determined not always by the strongest, but by ANY angle involved.
diag.png
figure2


So in figure2, if you have a round actor, you're almost always touching two sides at once if you touch it at all. This can be unpredictable sometimes, as 'stair stepped' pixels create differences that you can't see normally.

Re: collision confusion

PostPosted: Thu Feb 12, 2009 7:43 pm
by j2graves
no, it's not like that, because it's up against a large flat surface.

Re: collision confusion

PostPosted: Sun Feb 15, 2009 11:33 am
by Bee-Ant
What if dont repeat the collision

Re: collision confusion

PostPosted: Sat Feb 21, 2009 5:31 pm
by j2graves
what?

Re: collision confusion

PostPosted: Sat Feb 21, 2009 6:10 pm
by skydereign
He is saying it might be caused by collision repeat enabled. That can cause problems with animation, but it depends on how you do your physical response.

Re: collision confusion

PostPosted: Sat Feb 21, 2009 6:23 pm
by j2graves
ok, well, on the topic of collision, why is it that if an actor moves toward a wall on the right, it can climb it?

Re: collision confusion

PostPosted: Sun Feb 22, 2009 1:44 am
by skydereign
What are your physical response values? Can you post a .ged of the error?

Re: collision confusion

PostPosted: Mon Feb 23, 2009 11:43 am
by Bee-Ant
Oh...that problem...well, first...
Player>Collision>Wall>physical response>1100
Player>Collision>Wall>Script Editor>
Code: Select all
yvelocity++;

The script editor must be the last one...