# Stopping Random Movement...help!

**URL:** <https://forum.kirupa.com/t/stopping-random-movement-help/150138>\
**Category:** flash\
**Created:** [June 4, 2005, 4:56am UTC](https://forum.kirupa.com/t/stopping-random-movement-help/150138 "2005-06-04T04:56:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Insane\_Knux](https://avatars.discourse-cdn.com/v4/letter/i/439d5e/32.png) [@Insane\_Knux](https://forum.kirupa.com/u/Insane_Knux)\
**Post date:** [June 4, 2005, 4:56am UTC](https://forum.kirupa.com/t/stopping-random-movement-help/150138/1 "2005-06-04T04:56:34Z")

</div>

Ok, I’m making a game where you can run over people…(they walk randomly).  
Here’s my code:

```php
onClipEvent(enterFrame){
	move();
}
onClipEvent(enterFrame) {
	if(this.hitTest(_root.truck)) {
		this.gotoAndStop(10);
	}
}

```

Frame 10 shows the person dead… (it’s a stickman…).  
And from my knowledge, dead people don’t move…  
So I’m trying to figure out:  
How do I stop this stickman from moving when he’s on frame 10?
