collision confusion

Non-platform specific questions.

collision confusion

Postby j2graves » Sun Feb 08, 2009 2:02 am

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?
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: collision confusion

Postby DST » Sun Feb 08, 2009 4:18 am

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.
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score

Re: collision confusion

Postby j2graves » Thu Feb 12, 2009 7:43 pm

no, it's not like that, because it's up against a large flat surface.
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: collision confusion

Postby Bee-Ant » Sun Feb 15, 2009 11:33 am

What if dont repeat the collision
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: collision confusion

Postby j2graves » Sat Feb 21, 2009 5:31 pm

what?
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: collision confusion

Postby skydereign » Sat Feb 21, 2009 6:10 pm

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.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: collision confusion

Postby j2graves » Sat Feb 21, 2009 6:23 pm

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?
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: collision confusion

Postby skydereign » Sun Feb 22, 2009 1:44 am

What are your physical response values? Can you post a .ged of the error?
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: collision confusion

Postby Bee-Ant » Mon Feb 23, 2009 11:43 am

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...
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron