Newgrounds.com — Everything, By Everyone.

Checking login status…

USERNAME:

PASSWORD:

Logging in…

Logged in as:
.
Logging out…
Inbox My Account Log Out


Forum Topic: Drag And Drop

(174 views • 4 replies)

This topic is 1 page long.

<< < > >>
None

OneSexyPaperBag

Reply To Post Reply & Quote

Posted at: 4/21/07 02:51 AM

OneSexyPaperBag LIGHT LEVEL 03

Sign-Up: 02/27/07

Posts: 57

Is it not possible to startDrag() two objects at once?

I want to have a custom cursor but still be able to drag my character around the screen.


None

OneSexyPaperBag

Reply To Post Reply & Quote

Posted at: 4/21/07 03:04 AM

OneSexyPaperBag LIGHT LEVEL 03

Sign-Up: 02/27/07

Posts: 57

Actually, I'm not sure if that's it. Here's the code that's bugging me.

Cursor

onClipEvent(enterFrame){
this.startDrag(true);
}

Character

on(press){
this.startDrag(true);
grab=true
}


None

Stap1eGun

Reply To Post Reply & Quote

Posted at: 4/21/07 03:06 AM

Stap1eGun NEUTRAL LEVEL 01

Sign-Up: 02/21/07

Posts: 36

Couldn't you do something like this for the cursor...

onClipEvent(enterFrame){
this._y = _root._xmouse;
this._y = _root._ymouse
}


None

OneSexyPaperBag

Reply To Post Reply & Quote

Posted at: 4/21/07 03:08 AM

OneSexyPaperBag LIGHT LEVEL 03

Sign-Up: 02/27/07

Posts: 57

At 4/21/07 03:06 AM, Stap1eGun wrote: Couldn't you do something like this for the cursor...

onClipEvent(enterFrame){
this._y = _root._xmouse;
this._y = _root._ymouse
}

There's lag, the point of this game is to shake the character, so it looks funny. I tried that for the character, he didn't move though.


None

Tomato-Tamota

Reply To Post Reply & Quote

Posted at: 11/2/07 06:59 AM

Tomato-Tamota LIGHT LEVEL 02

Sign-Up: 02/22/06

Posts: 61

Ahem.

this._y = _root._ymouse;
this._x = _root._xmouse;

visit my beyblade user pgae (JUST KLICK MY PIC!!!


All times are Eastern Daylight Time (GMT -4) | Current Time: 09:41 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!