Handles loading and posting of high scores and scoreboards.
Categories > Newgrounds.io > rex_ngio_scoreboardIntroductionLinksDependenceUsagePrepareManage boardsGet boardsPost scoreGet score
Put rex_ngio_authentication into project, and set property App id
and AES key
.
Mange boards in dashboard, API Tools
, Scoreboards
.
Action:Get boards
Callback
Success : Condition:On get boards
Expression:BoardsAsJSON
Expression:BoardsCount
Condition:For each board
Expression:CurBoardName
Expression:CurBoardID
Expression:LoopIndex
, index in this for each loopGet board by index
Expression:Index2BoardName( index )
Expression:Index2BoardID( index )
Error : Condition:On get boards error
Expression:ErrorMessage
Set board ID
ID
, orAction:Set board ID
Expression:BoardID
Action:Post score
Tag for querying scores (optional)
Tag
Action:Set tag
Expression:Tag
Callback
Success : Condition:On post score
Error : Condition:On post score error
Expression:ErrorMessage
Set board ID
ID
, orAction:Set board ID
Expression:BoardID
Request scores
By start index
Action:Request in a range
Page by page
Action:Turn to page
Action:Update current page
Action:Turn to next page
Action:Turn to previous page
Page properties:
Expression:PageIndex
, current page indexLines
: lines of each pagePeriod, time-frame (optional)
Property Period
Action:Set period
Action:Set period by code
D
: current dayW
: current weekM
: current monthY
: current yearA
: all-timeExpression:Period
Tag for querying scores (optional)
Tag
Action:Set tag
Expression:Tag
Callback
Success : Condition:On get scores
Expression:ScoresAsJSON
Expression:ScoresCount
Expression:StartIndex
Condition:For each score
Expression:CurUserName
Expression:CurUserID
Expression:CurFormattedValue
xpression:CurValue
Expression:LoopIndex
, index in this for each loopGet score by index of current received scores
Expression:Index2UserName( index )
Expression:Index2UserID( index )
Expression:Index2FormattedValue( index )
Expression:Index2Value( index )
Error : Condition:On get scores error
Expression:ErrorMessage