# Please help with actionscripting

**URL:** https://forum.kirupa.com/t/please-help-with-actionscripting/107718
**Category:** Uncategorized
**Created:** [April 18, 2004, 11:08am UTC](https://forum.kirupa.com/t/please-help-with-actionscripting/107718 "2004-04-18T11:08:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![yhack](https://avatars.discourse-cdn.com/v4/letter/y/3da27b/32.png) [@yhack](https://forum.kirupa.com/u/yhack)
#### Post date: [April 18, 2004, 11:08am UTC](https://forum.kirupa.com/t/please-help-with-actionscripting/107718/1 "2004-04-18T11:08:13Z")

</div>

In my game u hav 2 blast bees and spiders out of the air

it dousnt fire ☹  
I done the tutorial but it dont work

Heres the bullet actions:

```auto
 onClipEvent (load) {
	if (_root.fire == 1) {
		this._x = _root.Cannon._x;
		this._y = _root.cannon._y;
	}
}
onClipEvent (load) {
	this._visible = 0;
}
onClipEvent (enterFrame) {
	if (this != _level0.bullet) {
		if (_root.fire == 1) {
			this._y -= 5;
			this._visible = 1;
		}
		if (this._y<0) {
			this.removeMovieClip();
		}
	}
}

```

And heres the cannon actions:

```auto
onClipEvent (enterFrame) {
	if (Key.isDown(Key.Left)) {
		_root.cannon._x -= 10;
	}
	if (Key.isDown(Key.Right)) {
		_root.cannon._x += 10;
	}
}
onClipEvent (load) {
	if (Key.isdown(key.space)) {
		_root.fire = 1;
		_root.i += 1;
		duplicateMovieClip(_root.bullet, "bullet"+i, i);
	}
}

```

the movement works just not the cannon that fires bullets ☹
