Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Need help with Flash CS3

Hi there,

I'll get straight to the point. I have everything programmed on my first frame. It's a tiny videogame with no interaction.

I have a button on my frame, when pressed, I need to give a bonus to the player. The player spends a certain amount of in-game gold to activate the bonus.

Here's what I've got:

bbonus1.onRelease = function() {
//Player pays
if(gold >> 1000) {
gold = gold - 1000;
doubleExp = 120;

The code doesn't work, AT ALL. Gold does not get deducted and the bonus is not activating.

I'm sure it's something very stupid, but I jsut can't get around it...
Sign In or Register to comment.