# Asteroid Ship Movement

**URL:** https://forum.kirupa.com/t/asteroid-ship-movement/41655
**Category:** programming
**Created:** [January 31, 2004, 6:48pm UTC](https://forum.kirupa.com/t/asteroid-ship-movement/41655 "2004-01-31T18:48:53Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![zachwlewis](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/zachwlewis/32/350_2.png) [@zachwlewis](https://forum.kirupa.com/u/zachwlewis)
#### Post date: [January 31, 2004, 6:48pm UTC](https://forum.kirupa.com/t/asteroid-ship-movement/41655/1 "2004-01-31T18:48:53Z")

</div>

Alright, I have the basic Asteroid code (from scratch), and I want my ship to have a maximum velocity.  
I gave it a maximum xspeed and yspeed, however, if I am on an angle less than 45, it will reach the maximum x-speed, but the y-speed will contiunue to increase.  
Any tips?:kir:

---

<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: [February 5, 2004, 4:31am UTC](https://forum.kirupa.com/t/asteroid-ship-movement/41655/2 "2004-02-05T04:31:17Z")

</div>

i think the samples folder in where you installed flash should have something that can help you.
