Waddle Village
www.WaddleVillage.net


This is our old forum, make sure to visit us at our new one! www.WaddleVillage.net
 
HomeFAQRegisterLog in

Share | 
 

 Making Walls in Flash. (NEED HELP! BADLY!)

View previous topic View next topic Go down 
AuthorMessage
RED
Legendary Duck


Male Posts: 1532
Join date: 2009-09-16

PostSubject: Making Walls in Flash. (NEED HELP! BADLY!)   Mon Jul 12, 2010 8:40 pm

Hey guys at Waddle Village!
I need an experienced coders help. And badly.
You know how in Club Penguin the charactars move when you click? And when they hit the wall their speed goes to 0? How do you do make such a border in flash, so that when your character hits the border they stop? Thanks!
~RED
Back to top Go down
http://nerdymations.webs.com
supportfth
WaddleVillage Finatic


Male Posts: 306
Join date: 2009-08-16
Age: 15
Location: Brazil

PostSubject: Re: Making Walls in Flash. (NEED HELP! BADLY!)   Fri Jul 16, 2010 3:09 am

Search about hittests in google. For an easier alternative, you could also do an if() checking if the character has exceeded the maximum y/x boundary in pixels... somthing like if(character._x <= 200){/*Dostuff*/};...

Sorry, not in a mood for writing, just came back from London, it's midnight (in Rio), equivalent to 4 o'clock in the morning in London. Wanna go ta sleep
Back to top Go down
http://silent-wolf.net
IndyJones
Legendary Duck


Female Posts: 1639
Join date: 2009-08-26
Age: 14
Location: On the computer.

PostSubject: Re: Making Walls in Flash. (NEED HELP! BADLY!)   Fri Jul 16, 2010 3:38 pm

supportfth wrote:
Search about hittests in google. For an easier alternative, you could also do an if() checking if the character has exceeded the maximum y/x boundary in pixels... somthing like if(character._x <= 200){/*Dostuff*/};...

Sorry, not in a mood for writing, just came back from London, it's midnight (in Rio), equivalent to 4 o'clock in the morning in London. Wanna go ta sleep


Not in the mood for writing? That's a first.
Back to top Go down
http://www.anythingadvice.forumotion.com
RED
Legendary Duck


Male Posts: 1532
Join date: 2009-09-16

PostSubject: Re: Making Walls in Flash. (NEED HELP! BADLY!)   Fri Jul 16, 2010 3:45 pm

Your avatar is freaking me out, Indy.
Back to top Go down
http://nerdymations.webs.com
WweTk
Newly Hatched Duck


Posts: 8
Join date: 2010-02-12

PostSubject: Re: Making Walls in Flash. (NEED HELP! BADLY!)   Sat Jul 17, 2010 7:54 pm

Easy heres a as2 code for it first make the objects movie clips then put stop (); in the frame and also put this in frame

(YourFirstobject.hitTest(YourSecondObject) {
//Here goes what you want too happen when your objects collide
like for example if my speed was 5 i could remove that speed by makin it goto 0 by typing this:
x=_x-5
//that reduces the speed too zero oh by the way the part that redduces speed only works if your using keyboard. I am currently looking for a type of hitTest for my platform game if i have more time i will try help you What a Face
Back to top Go down
RED
Legendary Duck


Male Posts: 1532
Join date: 2009-09-16

PostSubject: Re: Making Walls in Flash. (NEED HELP! BADLY!)   Sat Jul 17, 2010 8:47 pm

Sorry, I already had the code, but thanks for trying to help, WweTk!
REQUESTING LOCK
Back to top Go down
http://nerdymations.webs.com
 

Making Walls in Flash. (NEED HELP! BADLY!)

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» [Quick Guide] Making Mula
» Please stop making so many topics about the same thing
» Armas Lendárias (Walls of Moria)
» Instant Walls...Poli hero levels
» Making Walls in Flash. (NEED HELP! BADLY!)

Permissions in this forum:You cannot reply to topics in this forum
Waddle Village :: *CLOSED* www.WaddleVillage.net *CLOSED* :: Coding-