View Full Version : want to make RPG with mouse click and player moves control......
whistlingboy
05-12-2009, 06:15 PM
i want to make an RPG game in flash. i have a charater and can make him move using the arrow keys but want to do it as a 'click the mouse and the player moves to where you click' thing. i have a code but it doesn't do what i want it to. i need to know how to have the player standing still(idle) then when you click on the spot you want him to move using a walking movie clip and they go back to idle when he reaches the point you clicked.
hope that makes sence...
please help...
:confused:
abduraooft
05-12-2009, 06:28 PM
Please read and follow http://www.codingforums.com/postguide.htm, especially the second one! You may edit your post now.
gnomeontherun
05-13-2009, 10:35 AM
How are your skills with actionscript, and what code do you have? I can't help you fix it if I can't see it.
whistlingboy
05-13-2009, 07:49 PM
sorry, the code i have is...
import mx.transitions.Tween;
import mx.transitions.easing.*;
var xpos:Number;
var ypos:Number;
onMouseDown=function () {
xpos=this._xmouse;
ypos=this._ymouse;
var xTween = new Tween(my_mc, "_x", Regular.easeInOut, my_mc._x, xpos, 1.5, true);
var yTween = new Tween(my_mc, "_y", Regular.easeInOut, my_mc._y, ypos, 1.5, true);
}
...and thats it.
very basic skills (if you can call what i have, skills).
i mostly do animations. coding is something i've left to others in the past.
gnomeontherun
05-13-2009, 09:45 PM
Since this would be a rather deep topic, might I suggest that you read some of these?
http://www.dezinerfolio.com/2008/02/06/20-free-tutorials-to-create-your-own-flash-game/
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.