|
-
Flash Intermediate
[MX] Drag And Drop!!!
Just a very basic question, shouldn't be too hard to answer, but I couldn't find it anywhere else. (Couldn't think of any keywords)
I have a basic game board, with nine gray circles in it. there are also nine chocolates, and They can be dragged anywhere on the screen. But I need a script so that when a user drops the piece, it slides to the center of the intended spot.
Ex:
on(release) {
stopdrag(this)
this. hit test of circle?
if yes, this._x and this._y = circle1._x and circle1._y
I don't know, something like that. do I need an array? as the smiley says,
CONFUSED
In the process of designing a quirky little game engine called gulp. Check out it's progress below: @ my blog.
---
Check out my blog at XenElement.com
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|