LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-22-2005, 06:27 PM
Rudolf Rudolf is offline
Registered User
 
Join Date: May 2005
Posts: 1
Rep Power: 0
Rudolf is on a distinguished road
Question about mouse click & follow

I would consider myself an intermediate actionscripter, I could make a Maze game for example with key movements, but at the moment I'm trying to figure out the "Beetle Movement-pointer_or_click" sample that is included with Flash MX (Flash MX/Samples/FLA/).

Instead of having the Beetle always rotate and face the pointer, I prefer to refer to a keyframe, so I can use isometric views. For example, if I would click towards a twelve 'o clock target, It would refer to the "face up" keyframe and display the Object facing to the "top".

I'm making an RPG game, and are using a person as the Object. You would click somewhere on the stage and the person walks towards the target accordingly. Since I create the world in an isometric view, I won't have any use to a top-down view.
What piece of code would I have to add to tell, for example, if I clicked a 120 degrees from the objects position, it would jump the objects frame to a keyframe facing that direction? There is this Flash game called Necromanthus Diablo: http://www.t45ol.com/random_5119/files/Diablo.swf, that would pretty much be how I would like it, only that game has only 8 directions, as I would want to use 16.

I've been searching for days on the web for such templates, but all of them are top down, or key moved. Browsing in this website, I thought this place might offer a more helpful resourced.

Any help is greatly appreciated, thanks in advance,

Rudolf
 


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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Movieclip to follow mouse dalton Newbies 0 10-17-2008 02:42 PM
how to get somthing to follow the mouse at different speeds! wildweelz Flash MX 2004 1 09-21-2007 03:04 AM
Mouse click FLASHIMODO Flash MX ActionScript 1 09-29-2004 05:30 PM
how do i make a movie object follow the mouse? a7ay General Flash 3 11-10-2003 11:45 PM
Dumb question :right mouse click jaycenf29 Flash MX ActionScript 3 08-27-2002 02:48 PM




All times are GMT. The time now is 07:35 AM.