A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Line rider style line

  1. #1
    The implausable.
    Join Date
    Aug 2007
    Posts
    69

    Line rider style line

    How can i do this, i would like the same usability as linerider where teh oencil tool ca be picked up or put down, and where the pencil tool foolows the cursor all the while the pencil tool is selected, please help!

  2. #2
    Member
    Join Date
    Jul 2007
    Posts
    32
    You can simply create a button that says that for example the variable "tool" shall be 1. Then you have a movieclip with the code that says:
    if the variable tool is 1 this._x (and y) is _xmouse (and ymouse).
    the movieclip with the code is your tool for example a pencil.
    I made a varible beucose you can have more tools and just make another movieclip and button but the varible is 2.

    Hope this will help you

  3. #3
    When in doubt ask Eager Beaver's Avatar
    Join Date
    Feb 2007
    Location
    Planet Earth
    Posts
    911
    Please see the attached movie (F8)
    Last edited by Eager Beaver; 09-14-2007 at 07:17 AM.
    <signature removed by admin>

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center