# Game: Line draw (Advanced)

**URL:** https://forum.kirupa.com/t/game-line-draw-advanced/34701
**Category:** flash
**Created:** [November 5, 2003, 11:36am UTC](https://forum.kirupa.com/t/game-line-draw-advanced/34701 "2003-11-05T11:36:01Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Skinny\_T](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@Skinny\_T](https://forum.kirupa.com/u/Skinny_T)
#### Post date: [November 5, 2003, 11:36am UTC](https://forum.kirupa.com/t/game-line-draw-advanced/34701/1 "2003-11-05T11:36:01Z")

</div>

OK, I’ve been trying to do this for two months now and I cant do it. I’ve tried several tuts. to helpp me and I’ve achived nothing. All of the code is complete (just need to add in the comments). All I need is for some advance flash user (and I know there’s a few out there) to help me with a bit of code. I am making a car game, like GTA, and what I need is when the user presses the hand brake (space) it draws a line that it suppose to be a skidmark. Any help would be greatly appriciated and the user will be placed in the credits.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 5, 2003, 12:24pm UTC](https://forum.kirupa.com/t/game-line-draw-advanced/34701/2 "2003-11-05T12:24:42Z")

</div>

Hi,

I’ve made a (quite crude) working version of it.  
to tell you the truth I would recommend no to use onClipEvents dirctly on the MCs as if the project grows it’ll be difficult to track all the bits of code down.

SHO

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 6, 2003, 12:04am UTC](https://forum.kirupa.com/t/game-line-draw-advanced/34701/3 "2003-11-06T00:04:18Z")

</div>

Thanks but thats not what I’m after. That looks like its a mc that is drawing a line (tween). What happens if you turn? See, quite a difficult problem

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 6, 2003, 12:18pm UTC](https://forum.kirupa.com/t/game-line-draw-advanced/34701/4 "2003-11-06T12:18:06Z")

</div>

I told you it was crude! you’ve already got the solution if the car turns as you calculate the arch of the car’s movement when you turn it,  
just calculate its tangent!!!

SHO

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 7, 2003, 4:07am UTC](https://forum.kirupa.com/t/game-line-draw-advanced/34701/5 "2003-11-07T04:07:26Z")

</div>

I tried…and failed. Cant seem to get it to work.
