Be a Supporter!
Shuinvy
Shuinvy
  • Member since: Sep. 27, 2013
  • Offline.
Forum Stats
Supporter
Level 09
Game Developer
NG's API about voting 2017-05-03 05:51:34 Reply

Is there any API about voting in NewGrounds'?

I only see save data or scoreboard is almost what I want,

but I thought it's still different.

My situation:

People choose decision 1, then I can count the amount of decision 1 that player have selected,
and there are many decisions,
so I can get the result of each decisions and know what decision may the best or the worst
( even though the data of each decisions is low)

I guess it's 'voting system' in game,

but I won't put the result in game( it just a secret for developer to increase their designing).
(So even though scoreboard can have multiple score, I don't want people can see their score or rank, because it's fake voting usage, not a real scoreboard usage. Or is there any way to hide the scoreboard for players?)

Just curious is there any way of NewGround's API to do so?

Otherwise, I will just do it myself:

1. Set up database to store the count of each decision
2. Put the decision in the database by sending http request.

Hope someone help me if there is any method to do it by NG's API.

Thanks in advanced.

MSGhero
MSGhero
  • Member since: Dec. 15, 2010
  • Offline.
Forum Stats
Supporter
Level 16
Game Developer
Response to NG's API about voting 2017-05-03 10:14:09 Reply

At 5/3/17 05:51 AM, Shuinvy wrote: Is there any API about voting in NewGrounds'?

Maybe this is what you want: http://www.newgrounds.com/wiki/creator-resources/flash-api/reference/api#wiki_toc_20

API.logCustomEvent lets you see how many times an event happens. The events could be voting for one option or another. But also, yes you can hide the scoreboard if you think that is a better option.

Shuinvy
Shuinvy
  • Member since: Sep. 27, 2013
  • Offline.
Forum Stats
Supporter
Level 09
Game Developer
Response to NG's API about voting 2017-05-03 19:34:34 Reply

Wow, you save me!
I'll try it, thanks a lot!