# Switching levels, Weapons and Upgrades

**URL:** <https://forum.kirupa.com/t/switching-levels-weapons-and-upgrades/216815>\
**Category:** programming\
**Created:** [February 20, 2007, 8:42pm UTC](https://forum.kirupa.com/t/switching-levels-weapons-and-upgrades/216815 "2007-02-20T20:42:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![raghead](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@raghead](https://forum.kirupa.com/u/raghead)\
**Post date:** [February 20, 2007, 8:42pm UTC](https://forum.kirupa.com/t/switching-levels-weapons-and-upgrades/216815/1 "2007-02-20T20:42:44Z")

</div>

I need a lot of help with this game I’m making, and I’m pretty bad at actionscript, so please bear with me. Here is the game so far:  
[http://www.newgrounds.com/portal/view/364989](http://www.newgrounds.com/portal/view/364989)

Ok, first off on switching levels. I already have a second level drawn and everything, but I can’t get the level to switch based on the score. I have the code:  
if (score\>2000) {  
gotoAndPlay(3)  
}

Problem 2: New weapons. Ok, I pretty much have no idea where to start on this one. I know I make a box with a hittest that removes the movieclip when you hit it, but how do I make the weapon change? One idea I had was to have seperate frames in the bullet.mc, but that wouldn’t work because I want the different weapons to have different properties. For example I want a buzz saw or something that I won’t have the remove movieclip code on so it cuts through everything. And then there’s the problem of having ammo, I am just completly lost with this.  
Upgrades pretty much fall into the same area as this problem, in that I want to change properties of the plane with them.

Thanks a lot to anyone that helps, you will be fully credited in the updated version of the game.
