Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 09-12-2001, 09:43 AM   #1
xaub
Registered User
 
Join Date: Aug 2001
Posts: 7
Default drag and throw?

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
xaub is offline   Reply With Quote
Old 09-26-2001, 09:43 AM   #2
Ricod
(@_@) -("pretty lights")
 
Ricod's Avatar
 
Join Date: Sep 2001
Location: the Netherlands
Posts: 3,982
Default

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 ?
Ricod is offline   Reply With Quote
Old 09-26-2001, 09:54 AM   #3
Jesse
ActionScript.org Founder
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: New York
Posts: 8,736
Default

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

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.
Jesse is offline   Reply With Quote
Old 09-27-2001, 02:38 PM   #4
xaub
Registered User
 
Join Date: Aug 2001
Posts: 7
Default

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
xaub is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Grab, drag and throw effect. ziller ActionScript 2.0 5 07-20-2010 05:06 PM
Drag & Drop with easing Bill Blast Other Flash General Questions 2 10-31-2006 10:15 PM
Help with drag, spin and throw navigation penguin ActionScript 2.0 0 10-18-2005 08:39 PM
Click Drag forward reverse of MC ciaobox ActionScript 1.0 (and below) 2 09-23-2003 10:15 AM
A question using start/stop drag RobinNM ActionScript 1.0 (and below) 2 07-03-2002 02:58 PM


All times are GMT. The time now is 05:48 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.