Making a wall ?

Moderators: Valkyrion4, Wallaz, sanma, OutofLine, goodie633, RandomProductions

Re: Making a wall ?

Postby gokenshadow » Sat Jul 17, 2010 4:21 pm

Can you restate the problem please? I don't understand what you mean.
Wise men gain their wisdom from idiots.
User avatar
gokenshadow
LIVE
 
Posts: 62
Joined: Tue Nov 13, 2007 5:22 am
Location: Sacramento California

Re: Making a wall ?

Postby Dansul » Sun Jul 18, 2010 12:32 am

It would help if you put the code you are using up for others to debug. I used the below code to counter act the movement of my player resulting in him stopping. My player's speed was set at -4 when he moved left on the screen so I made this code to "push" him to a stop. This way is buggy and there is probably a better way out there. Best I can do. Good Luck!

Code: Select all
if(this.hitTest(_root.player)){
_root.player._x += 4;
}
Programs learning: HTML, PHP and CSS
Flash making: Sun Down(12%) Stuck on AI
Liveswif is on Facebook located at http://www.facebook.com/group.php?gid=99685403002
User avatar
Dansul
LIVESW
 
Posts: 116
Joined: Thu Apr 19, 2007 10:38 pm
Location: PA


Return to Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest

cron