Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- onClipEvent(enterFrame){
- Mouse.hide();
- this._x=_root._xmouse;
- this._y=_root._ymouse;
- }
- onClipEvent (enterFrame) {
- function resetScore()
- {
- score = 0;
- _root.scoreText.text = score;
- }
- function updateScore(points)
- {
- score += points;
- _root.scoreText.text = score;
- }
- function Shoot()
- {
- _root.attachMovie("Bullet", "Bullet" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
- }
- if (Key.isDown(1)) {
- Shoot();
- }
- resetScore();
- }
Advertisement
Add Comment
Please, Sign In to add comment