| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Aug 2001
Posts: 7
|
Hello Gurus,
Here is my situation: A movie clip represents a hand on stage,wich is moveable in x position with the left and right arrow key. There are 8 targets (balls) wich one by one should stick on the hand, when it is over it, and the down key is pressed. Then ones sticked, you should be able to throw that ball on a target... I imagine something that it has to do with _x and _y properties of both wich should be continuosly checked wether the hand is above a target or not... It's hard to explain somehow, therefore i created this little dummy movie here. I hope it makes more clear what i'am trying to achieve... http://01interactions.net/ego_shooter/problem.htm Thanks very much for help, i really need it at this time. Alex |
|
|
|
|
|
#2 |
|
(@_@) -("pretty lights")
Join Date: Sep 2001
Location: the Netherlands
Posts: 3,988
|
ehm ... this will take some scripting. I haven't really looked into it, but I've seen someone do a 'throwable' scrollbar. You could pick it up, drag, release and the bar would continue in the set direction (only x-axis, but with some mod. you could do either or both) It also bounced of the border ... I believe the site was www.ultrashock.com Very nice design if you like the black/white metal thingie ... Check for the interface samples ...
__________________
RicoD Link ? |
|
|
|
|
|
|
|
|
#3 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
there's a drag and throw example by flash guru in the movies section... http://www.actionscripts.org/movies-...archTerm=throw
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
|
|
#4 |
|
Registered User
Join Date: Aug 2001
Posts: 7
|
Thanks for help Jesse and Ricod, i've downloadet some of the tutorials.
But still the fundamental difference is that i cannot use the mouse. I use a mc and move it left and right like that. onClipEvent (load) { moveSpeed = 5; } onClipEvent (enterFrame) { if (Key.isDown(Key.RIGHT)) { this._x += moveSpeed; } else if (Key.isDown(Key.LEFT)) { this._x -= moveSpeed; } } In the meantime i have the picking up working here. Now only the throw thing doesent work. why does this not work when blue is rootet to hand??? if (Key.isDown(Key.SPACE)) { } else if (goblue == 1) { this.gotoAndPlay(3); } Thanks for help Alex |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Grab, drag and throw effect. | ziller | ActionScript 2.0 | 4 | 07-24-2007 10:36 AM |
| Drag & Drop with easing | Bill Blast | Other Flash General Questions | 2 | 10-31-2006 11:15 PM |
| Help with drag, spin and throw navigation | penguin | ActionScript 2.0 | 0 | 10-18-2005 09:39 PM |
| Click Drag forward reverse of MC | ciaobox | ActionScript 1.0 (and below) | 2 | 09-23-2003 11:15 AM |
| A question using start/stop drag | RobinNM | ActionScript 1.0 (and below) | 2 | 07-03-2002 03:58 PM |