|  | Solid wall |  | |
| | | john-asx |  |
| Posted: Thu Aug 21, 2008 5:50 am Post subject: Solid wall |  |
I am making a labyrinth in Adobe Flash at my school. I have already made the ball, which you must play through the labyrinth. You click the ball with mouse and move it with your mouse. How I get the walls of labyrinth to be solid that the ball cant go over the walls?
Is there any way to make it solid? Another idea I had is to make te ball jump one pixel farther from the wall when it touches the wall.
Thank you in advance
John |
| |
| | | DMennenoh **AdobeCommunit |  |
| Posted: Thu Aug 21, 2008 10:46 am Post subject: Re: Solid wall |  |
Generally, start doing some reading on collision detection in Flash. How you implement it depends on how your maze is setup. If you use tiles, for instance, it's pretty easy to just check the oncoming tile to see if it is ok to move to it. If you're trying to use a bitmap, you could use movieClip.hitTest, but there are many ways. Check Grant Skinner's blog for some good collision detection stuff. LINK
-- Dave - LINK Head Developer LINK Adobe Community Expert LINK |
| |
| | | john-asx |  |
| Posted: Thu Aug 21, 2008 12:07 pm Post subject: Re: Solid wall |  |
I wonder ...
Is there anyone who can answer this question? My knowledge isnt very big, so I havent answered to all those threads in this section only.
Is there any members with big knowledge? |
| |
| | | john-asx |  |
| Posted: Mon Aug 25, 2008 5:14 am Post subject: Re: Solid wall |  |
| |
|
|