|
#1
|
|||
|
|||
|
I have been trying to figure out how to build something like the helicopter game.
I cant figure out how to control the movieclip (copter) with mouse.down. I have flash 8, and i've gotten this onClipEvent (enterFrame) { if (Mouse.DOWN){ copter = _root.Mouse._x ps. i know this code is probably completely wrong If any1 can help me i would really appriciate it, im completely stumped, and i cant find anything online on how to do it. Thanks Last edited by jbjb1228; 03-13-2008 at 11:26 PM. Reason: needed to add |
|
#2
|
|||||||||
|
|||||||||
|
Quote:
Ok, the tutorial wasn't exactly what I thought it was, but I managed to get this piece if script which will make the copter behave a little bit like the actual one. Code:
__________________
Last edited by Bigmutha; 03-20-2008 at 07:13 PM. Reason: Added Script |
|
#3
|
|||||||||
|
|||||||||
|
bigmutha is right the code you are using looks more like it's intended to make the helicopter go to where your mouse is (although it's not quite right in any case). Is that what you are aiming for or do you want the helicopter to travel upwards when the mouse is clicked (like in the game copter)?
__________________
|
| Sponsored Links |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|