Home Forums Register FAQ Members List Calendar Search Today's Posts Mark Forums Read Arcade Chat
Go Back   ClubPenguinHQ Forums > General Discussion > Programming > Action Script
Reload this Page HELP !
Action Script Any discussion of Action Script belongs here.

HELP !

Reply
 
LinkBack Thread Tools Display Modes
HELP !
Old
  (#1)
Sadboy222 is Offline
New Member
Sadboy222 is an unknown quantity at this point
 
Posts: 20
Join Date: Jun 2008
Rep Power: 0
   
Default HELP ! - Sunday, November 23rd, 2008

How do you make in Adobe Flash characters move but with mouse(when the mouse clicks somewhere the character goes to do mouse) ?
  
Reply With Quote
Old
  (#2)
Ninjaboy is Offline
New Member
Ninjaboy is an unknown quantity at this point
 
Ninjaboy's Avatar
 
Posts: 42
Join Date: Jan 2009
Location: AHHH!!! STALKER!!!
Age: 10
Rep Power: 0
  Send a message via AIM to Ninjaboy  
Default Thursday, April 30th, 2009

I could help ya

onClipEvent (load) {
_x = 0;
_y = 0;
speed = 5;
}
onClipEvent (mouseDown) {
endX = _root._xmouse;
endY = _root._ymouse;
}
onClipEvent (enterFrame) {
_x += (endX-_x)/speed;
_y += (endY-_y)/speed;
}
  
Reply With Quote
Old
  (#3)
Eternal is Offline
Cheating God; Retired
Eternal is on their way to the top
 
Eternal's Avatar
 
Posts: 1,918
Join Date: Aug 2007
Location: <!> Earth, USA <!>
Age: 12
Rep Power: 0
  Send a message via AIM to Eternal Send a message via MSN to Eternal Send a message via Yahoo to Eternal  
Default Friday, May 1st, 2009

Quote:
Originally Posted by Ninjaboy View Post
I could help ya

onClipEvent (load) {
_x = 0;
_y = 0;
speed = 5;
}
onClipEvent (mouseDown) {
endX = _root._xmouse;
endY = _root._ymouse;
}
onClipEvent (enterFrame) {
_x += (endX-_x)/speed;
_y += (endY-_y)/speed;
}
Ya that should probably work, good job looking off google, noob -_-


I have left CPHQ.
[Star StrucKK] - My blog.
  
Reply With Quote
Reply

Lower Navigation
Go Back   ClubPenguinHQ Forums > General Discussion > Programming > Action Script

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On




Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
vBulletin Skin developed by: vBStyles.com
Copyright ©2006 - 2009, RancidKraut Industries