The forums have permanently moved to This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.

Results 1 to 2 of 2

Thread: Need Help assp

  1. #1

    Need Help assp

    hey guys,

    im trying to make a game whereas the user has to click around an environment. its a car game, the user clicks around the screen, once clicked, the car will go to that point and also draw a road behind it, thus creating roads as they go, does anyone now any good tutorials?

  2. #2
    Ok, what you're trying to do is fairly easy. Here are two really simple tutorials that should help in pointing you in the right direction:

    Look at the code here to get a basic understanding of how to make a mouse follower, and you'll have a better idea of how to move your car toward the mouse when you click.
    Mouse Follower Tutorial.

    And then look at the basics of the Drawing API
    Drawing API Tutorial

    Basically you'll want to look at lineStyle(), moveTo(x, y), and lineTo(x,y).

    Ok, that should be enough, good luck!
    you = function(){
    setEnabled( true );
    setEnabled( false );

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Home About Meet the Moderators Advertise

 Link to Us


Copyright 1999 - 2012