00:00
00:00
Newgrounds Background Image Theme

SillyVixen just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Very Big Variable Issue

278 Views | 0 Replies
New Topic Respond to this Topic

Very Big Variable Issue 2016-07-23 12:52:10


I need some help. I'm working on a cookie clicker style game, and I want a textfield to display the user's score. All it does, is clear the text field.

var score:int;

button_2.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);

function fl_MouseClickHandler(event:MouseEvent):void
{
score = score + 1;
txt.text = score.toString();
}

What's wrong with my code?


You are a stale meme.