This is a discussion on "movement problem" within the Flash & Multimedia Forum section. This forum, and the thread "movement problem are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
movement problem
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|
|
||||
|
Re: movement problem
please attach your .fla file
__________________
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
|
|||
|
Re: movement problem
my *.fla
|
|
||||
|
Re: movement problem
If you want to control key press its better to use key listeneres, in this file i have created a function that moving balls but for ball1 i have assigned left key and for ball2 right key, so as i said for best control on keys you should use key listeners
if you need more information please tell me
__________________
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
|
|||
|
Re: movement problem
One more thing,how can I block the 2 circles so they don't get one in to another.
What shlould I write inside the action ---- if (circle.hitTest |
|
||||
|
Re: movement problem
Yes one way is to test with hittest, but the problem with hittest is it will test the hit with bounding box around circle so u will get collision when bounding boxes hit each other
so more accurate way is to calculate the distance between two objects
__________________
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| First image problem and inline list problem | konnor5092 | Web Page Design | 8 | Dec 1st, 2007 09:08 |
| movement parameters..... ARGH | callumazoo | Flash & Multimedia Forum | 6 | May 31st, 2007 14:19 |