Page 1 of 1

actors moving through walls

PostPosted: Wed Apr 02, 2008 6:53 pm
by Kalladdolf
does happen a lot, especially when they hit an uneven spot of a wall or have a great velocity.
is there a good way to avoid this?

Re: actors moving through walls

PostPosted: Wed Apr 02, 2008 7:21 pm
by Troodon
If a object travels with xvelocity 15, it means it jumps to every 15 pixel.

Two ways to avoid flying through walls:
-make thicker walls
-reduce actor max speeds

:)

Re: actors moving through walls

PostPosted: Wed Apr 02, 2008 7:29 pm
by Kalladdolf
tekdino wrote:make thicker walls

good point, thx you mention it.

[_____________________________]
there were some cases when walls of this thickness couldn't hold'em back.

:)

Re: actors moving through walls

PostPosted: Wed Apr 02, 2008 8:18 pm
by Troodon
Yeah, when the pixel velocity is wall thickness + 1. :D
How big speed values you get in your game?

Re: actors moving through walls

PostPosted: Wed Apr 02, 2008 10:00 pm
by Freddy
Try increasing the frame rate. :)

Re: actors moving through walls

PostPosted: Wed Apr 02, 2008 10:52 pm
by Caaz Games
oo oo i know, maybe theres something wrong with your animation, like maybe once it changes to the frame thats wrong it makes like a part of your actor move into the wall and that makes it go all the way through

Re: actors moving through walls

PostPosted: Wed Jun 04, 2008 2:27 pm
by JayInACob
make sure that in the collision event bit, you select "yes" to "repeat this event while actor is colliding".

Works most of the time for me.

Re: actors moving through walls

PostPosted: Wed Jun 04, 2008 9:06 pm
by DST
You can also try 'collision free'.

Re: actors moving through walls

PostPosted: Thu Jun 05, 2008 9:25 am
by Kalladdolf
Caaz Games wrote:oo oo i know, maybe theres something wrong with your animation, like maybe once it changes to the frame thats wrong it makes like a part of your actor move into the wall and that makes it go all the way through


that's often the case, but it isn't the main problem.

tekdino wrote:Yeah, when the pixel velocity is wall thickness + 1. :D
How big speed values you get in your game?


:oops: maybe you're right, I should reduce the speed a little.

JayInACob wrote:make sure that in the collision event bit, you select "yes" to "repeat this event while actor is colliding".

Works most of the time for me.


lol, I always do that =D
there's no way around it.

DST wrote:You can also try 'collision free'.


ummmmmmmmmmmm 'kay.

Re: actors moving through walls

PostPosted: Thu Jun 05, 2008 10:04 pm
by feral
i just posted a demo to the demo section which shows how to use the collisionfree function to stop you sliding thu walls even if they are 1 pixel thick and you are travelling at a velocity of a 100.

i assume this is what DST was thinking of.

viewtopic.php?f=6&t=5768

hope it helps
feral