Be 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.