Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 07-04-2008, 03:54 PM   #1
coolteach
Registered User
 
Join Date: Jul 2008
Posts: 1
Default Creating a drag and drop game...

I'm not so sure this is "simple" but I don't know how to make it work correctly. I'm trying to create a really simple drag and drop learning activity (where pieces can be clicked and dragged). I would like students to be able to click and drag pieces to the target, have the piece lock in place if they select the right target or snap back to the original location if they select the wrong target. Something tells me this is not an easy task for a newbie.

So far I've successfully made a movie clip draggable, but it won't drop once clicked (a far cry from drop in correct place or snap back to start).

I've attached a screen shot of the code I've cobbled together so far. Any help or hints would be greatly appreciated.

CoolTeach
Attached Thumbnails
Click image for larger version

Name:	code.jpg
Views:	79
Size:	70.9 KB
ID:	27997  
coolteach is offline   Reply With Quote
Old 07-04-2008, 07:11 PM   #2
Pedal-kid
Registered User
 
Join Date: Jun 2008
Posts: 26
Default lets have sex

insert this in the MC:
ActionScript Code:
on (press) {     startDrag(this); } on (release) {     stopDrag(); }
Pedal-kid 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
Help with simple drag & drop game arteye Gaming and Game Development 3 04-27-2008 08:32 PM
first Drag 'n Drop game help NkUnleashed Gaming and Game Development 2 04-10-2008 03:14 PM
Problem with drag and drop game james_littler Gaming and Game Development 1 02-11-2008 12:36 PM
how to add timer for drag & drop game.. booniraj Gaming and Game Development 3 10-15-2003 04:43 AM
Drag and Drop Game Elder Gaming and Game Development 0 11-26-2002 01:14 PM


All times are GMT. The time now is 12:16 PM.

///
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.