View Full Version : Wall not Blocking prob =(
ricer
March 31st, 2006, 03:07 PM
heya i hope im in the right section finally :p
i have tried many ways to get my char from not walking thru a wall
does anyone has a good code?
thnx :D
regards,
Ricer
bombsledder
March 31st, 2006, 03:36 PM
you have to use the hitTest function
ricer
March 31st, 2006, 03:38 PM
i did that, didnt work :S
only thing happend was that the wall was moving :S
nathan99
March 31st, 2006, 04:46 PM
http://www.n99creations.com/?pID=archives&col=Blue&arch=getBounds_as_walls
that help? It's a very basic example
ricer
March 31st, 2006, 04:56 PM
Yeah it worked :D
thanks man ^^
ur awsome ;) (i know i sound noobish :p)
ricer
April 1st, 2006, 10:07 AM
One more question
i want to make more than one wall but if i do the char cant walk because the movieclip will have a whole square selected
anything to do about that?
(yes i know im a noob ) :p
Joppe
April 1st, 2006, 11:05 AM
dude.onEnterFrame = function(){
if(_root.ground.hitTest(this._x,this._y,true)){
trace('gay');
}
}
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.