Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    May 2009
    Location
    third rock from the sun
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question want to make RPG with mouse click and player moves control......

    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...

    Last edited by whistlingboy; 05-12-2009 at 06:41 PM.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,849
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Please read and follow http://www.codingforums.com/postguide.htm, especially the second one! You may edit your post now.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    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.
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.

  • #4
    New to the CF scene
    Join Date
    May 2009
    Location
    third rock from the sun
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    sorry, the code i have is...

    Code:
    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.
    Last edited by whistlingboy; 05-13-2009 at 06:51 PM.

  • #5
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    Since this would be a rather deep topic, might I suggest that you read some of these?

    http://www.dezinerfolio.com/2008/02/...wn-flash-game/
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •