Someone gifted MetalSlayer69 supporter status!
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!Hello folks, I just uploaded a silly game but the in game score display is broken, can someone review my code and see what could possible be wrong? Thanks in advance.
void OnScoresLoaded(io.newgrounds.results.ScoreBoard.getScores result)
{
if (result.success)
{
Debug.Log("Score loaded succefully");
for (int i = 0; i < 100; i++)
{
string text = "" + (i+1);
if ( i < result.scores.Count)
{
io.newgrounds.objects.score score = (io.newgrounds.objects.score)result.scores[i];
text += " " + score.user + " " + score.value;
Debug.Log(score.user + "" + score.value);
}
else
{
text += " -";
}
content.transform.GetChild(i).GetComponent<TextMeshProUGUI>().text = text;
}
}
else
{
Debug.Log("Can't Load Scoreboard");
}
}
public void LoadScore(string period)
{
io.newgrounds.components.ScoreBoard.getScores getScores = new io.newgrounds.components.ScoreBoard.getScores();
getScores.id = thenumber;
getScores.period = period;
getScores.callWith(ngioCore, OnScoresLoaded);
}
Hello folks, I just uploaded a silly game. The upload score is working fine but the in game score display is broken, can someone review my code and see what could possible be wrong? Thanks in advance.
void OnScoresLoaded(io.newgrounds.results.ScoreBoard.getScores result)
{
if (result.success)
{
Debug.Log("Score loaded succefully");
for (int i = 0; i < 100; i++)
{
string text = "" + (i+1);
if ( i < result.scores.Count)
{
io.newgrounds.objects.score score = (io.newgrounds.objects.score)result.scores[i];
text += " " + score.user + " " + score.value;
Debug.Log(score.user + "" + score.value);
}
else
{
text += " -";
}
content.transform.GetChild(i).GetComponent<TextMeshProUGUI>().text = text;
}
}
else
{
Debug.Log("Can't Load Scoreboard");
}
}
public void LoadScore(string period)
{
io.newgrounds.components.ScoreBoard.getScores getScores = new io.newgrounds.components.ScoreBoard.getScores();
getScores.id = thenumber;
getScores.period = period;
getScores.callWith(ngioCore, OnScoresLoaded);
}
Hello folks, I just uploaded a silly game but the in game score display is broken, can someone review my code and see what could possible be wrong? Thanks in advance.
void OnScoresLoaded(io.newgrounds.results.ScoreBoard.getScores result)
{
if (result.success)
{
Debug.Log("Score loaded succefully");
for (int i = 0; i < 100; i++)
{
string text = "" + (i+1);
if ( i < result.scores.Count)
{
io.newgrounds.objects.score score = (io.newgrounds.objects.score)result.scores[i];
text += " " + score.user + " " + score.value;
Debug.Log(score.user + "" + score.value);
}
else
{
text += " -";
}
content.transform.GetChild(i).GetComponent<TextMeshProUGUI>().text = text;
}
}
else
{
Debug.Log("Can't Load Scoreboard");
}
}
public void LoadScore(string period)
{
io.newgrounds.components.ScoreBoard.getScores getScores = new io.newgrounds.components.ScoreBoard.getScores();
getScores.id = thenumber;
getScores.period = period;
getScores.callWith(ngioCore, OnScoresLoaded);
}
Hello folks, I just uploaded a silly game but the in game score display is broken, can someone review my code and see what could possible be wrong? Thanks in advance.
void OnScoresLoaded(io.newgrounds.results.ScoreBoard.getScores result)
{
if (result.success)
{
Debug.Log("Score loaded succefully");
for (int i = 0; i < 100; i++)
{
string text = "" + (i+1);
if ( i < result.scores.Count)
{
io.newgrounds.objects.score score = (io.newgrounds.objects.score)result.scores[i];
text += " " + score.user + " " + score.value;
Debug.Log(score.user + "" + score.value);
}
else
{
text += " -";
}
content.transform.GetChild(i).GetComponent<TextMeshProUGUI>().text = text;
}
}
else
{
Debug.Log("Can't Load Scoreboard");
}
}
public void LoadScore(string period)
{
io.newgrounds.components.ScoreBoard.getScores getScores = new io.newgrounds.components.ScoreBoard.getScores();
getScores.id = thenumber;
getScores.period = period;
getScores.callWith(ngioCore, OnScoresLoaded);
}
Hello folks, I just uploaded a silly game but the in game score display is broken, can someone review my code and see what could possible be wrong? Thanks in advance.
void OnScoresLoaded(io.newgrounds.results.ScoreBoard.getScores result)
{
if (result.success)
{
Debug.Log("Score loaded succefully");
for (int i = 0; i < 100; i++)
{
string text = "" + (i+1);
if ( i < result.scores.Count)
{
io.newgrounds.objects.score score = (io.newgrounds.objects.score)result.scores[i];
text += " " + score.user + " " + score.value;
Debug.Log(score.user + "" + score.value);
}
else
{
text += " -";
}
content.transform.GetChild(i).GetComponent<TextMeshProUGUI>().text = text;
}
}
else
{
Debug.Log("Can't Load Scoreboard");
}
}
public void LoadScore(string period)
{
io.newgrounds.components.ScoreBoard.getScores getScores = new io.newgrounds.components.ScoreBoard.getScores();
getScores.id = thenumber;
getScores.period = period;
getScores.callWith(ngioCore, OnScoresLoaded);
}
Hello folks, I just uploaded a silly game but the in game score display is broken, can someone review my code and see what could possible be wrong? Thanks in advance.
void OnScoresLoaded(io.newgrounds.results.ScoreBoard.getScores result)
{
if (result.success)
{
Debug.Log("Score loaded succefully");
for (int i = 0; i < 100; i++)
{
string text = "" + (i+1);
if ( i < result.scores.Count)
{
io.newgrounds.objects.score score = (io.newgrounds.objects.score)result.scores[i];
text += " " + score.user + " " + score.value;
Debug.Log(score.user + "" + score.value);
}
else
{
text += " -";
}
content.transform.GetChild(i).GetComponent<TextMeshProUGUI>().text = text;
}
}
else
{
Debug.Log("Can't Load Scoreboard");
}
}
public void LoadScore(string period)
{
io.newgrounds.components.ScoreBoard.getScores getScores = new io.newgrounds.components.ScoreBoard.getScores();
getScores.id = thenumber;
getScores.period = period;
getScores.callWith(ngioCore, OnScoresLoaded);
}
Hello folks, I just uploaded a silly game but the in game score display is broken, can someone review my code and see what could possible be wrong? Thanks in advance.
void OnScoresLoaded(io.newgrounds.results.ScoreBoard.getScores result)
{
if (result.success)
{
Debug.Log("Score loaded succefully");
for (int i = 0; i < 100; i++)
{
string text = "" + (i+1);
if ( i < result.scores.Count)
{
io.newgrounds.objects.score score = (io.newgrounds.objects.score)result.scores[i];
text += " " + score.user + " " + score.value;
Debug.Log(score.user + "" + score.value);
}
else
{
text += " -";
}
content.transform.GetChild(i).GetComponent<TextMeshProUGUI>().text = text;
}
}
else
{
Debug.Log("Can't Load Scoreboard");
}
}
public void LoadScore(string period)
{
io.newgrounds.components.ScoreBoard.getScores getScores = new io.newgrounds.components.ScoreBoard.getScores();
getScores.id = 10969;
getScores.period = period;
getScores.callWith(ngioCore, OnScoresLoaded);
}
Hello folks, I just uploaded a silly game but the in game score display is broken, can someone review my code and see what could possible be wrong? Thanks in advance.
void OnScoresLoaded(io.newgrounds.results.ScoreBoard.getScores result)
{
if (result.success)
{
Debug.Log("Score loaded succefully");
for (int i = 0; i < 100; i++)
{
string text = "" + (i+1);
if ( i < result.scores.Count)
{
io.newgrounds.objects.score score = (io.newgrounds.objects.score)result.scores[i];
text += " " + score.user + " " + score.value;
Debug.Log(score.user + "" + score.value);
}
else
{
text += " -";
}
content.transform.GetChild(i).GetComponent<TextMeshProUGUI>().text = text;
}
}
else
{
Debug.Log("Can't Load Scoreboard");
}
}
public void LoadScore(string period)
{
io.newgrounds.components.ScoreBoard.getScores getScores = new io.newgrounds.components.ScoreBoard.getScores();
getScores.id = thenumber;
getScores.period = period;
getScores.callWith(ngioCore, OnScoresLoaded);
}