wanted: move player to mouse click location

way2insane

  • Posts: 17
I've been trying for the last couple of days to develop one on my own...but for the life of me can't seem to get it to work.
So would deeply apreciate any help the development team can spare in this regard.

P.S.  Also a simple animation to let the player know when/where the movement was activated would be a definete plus (kind of like warcraft 3 style) but isn't necesary.

Silux

  • Posts: 438

When created
 set animation to Resting
On mouse click
 set animation to Walking
 Point actor to aTang xActor yActor xMouse yMouse
 move actor from xSelf ySelf to xMouse yMouse at 4 force

aTang finds the angle of the line between two dots

About the animation
use a featured actor from the forge

This is not complete but should work
Currently working at:
Starwarrior 2097(my main project)
How to make successful games in Kongregate and the world(article)

way2insane

  • Posts: 17
set animation to resting<--Do I create the attribute?  I downloaded a couple of featured actors and they don't have an animation attribute.

on mouse click<---should this be attached under the "when created tab"?

set animation to walking<---again don't know if I need to add this attribute, or is there a specific actor that already has this?

atang<---where do I get this?

would be easier if you could post a screen shot of the code block area so I at least to know where to find the code blocks by color & shape.

*grins impishly*
guess this would be better now in the how to section now

Silux

  • Posts: 438
This is what i was saying

Ignore the left blocks

Currently working at:
Starwarrior 2097(my main project)
How to make successful games in Kongregate and the world(article)