00:00
00:00
Newgrounds Background Image Theme

DoctorSpectre 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!

Browse Sections

Newgrounds Wiki: postScore

Usage

import com.newgrounds.API;
API.postScore(board_name:String, score:uint, tag:String);
  • board_name - The name of the scoreboard you are posting to.
  • score - The numeric value of the score.
  • tag - An optional tag that you can filter score lookups on.
This command will post a score to the specified scoreboard if the local user is logged in.

The optional tag parameter is a good way of splitting up scores by difficulty, level, etc...

This command will trigger a SCORE_POSTED event.