actors moving through walls

Non-platform specific questions.

actors moving through walls

Postby Kalladdolf » Wed Apr 02, 2008 6:53 pm

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?
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: actors moving through walls

Postby Troodon » Wed Apr 02, 2008 7:21 pm

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

:)
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Re: actors moving through walls

Postby Kalladdolf » Wed Apr 02, 2008 7:29 pm

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.

:)
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: actors moving through walls

Postby Troodon » Wed Apr 02, 2008 8:18 pm

Yeah, when the pixel velocity is wall thickness + 1. :D
How big speed values you get in your game?
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Re: actors moving through walls

Postby Freddy » Wed Apr 02, 2008 10:00 pm

Try increasing the frame rate. :)
Hola
User avatar
Freddy
 
Posts: 548
Joined: Sat Jun 02, 2007 3:42 pm
Location: Why do you want to know?
Score: 14 Give a positive score

Re: actors moving through walls

Postby Caaz Games » Wed Apr 02, 2008 10:52 pm

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
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score

Re: actors moving through walls

Postby JayInACob » Wed Jun 04, 2008 2:27 pm

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.
JayInACob
 
Posts: 6
Joined: Fri Aug 17, 2007 5:00 pm
Score: 0 Give a positive score

Re: actors moving through walls

Postby DST » Wed Jun 04, 2008 9:06 pm

You can also try 'collision free'.
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: actors moving through walls

Postby Kalladdolf » Thu Jun 05, 2008 9:25 am

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.
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: actors moving through walls

Postby feral » Thu Jun 05, 2008 10:04 pm

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
User avatar
feral
 
Posts: 308
Joined: Sun Mar 16, 2008 6:27 am
Score: 47 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron