Be a Supporter!
Response to: How to post score to scoreboard? Posted June 4th, 2014 in Game Development

I FOUND IT!

The code is:
import com.newgrounds.*;
API.postScore("Score Board Name", _root.score);

Thanks to TheRed555

Original post can be found here

Response to: How to post score to ScoreBoard? Posted June 4th, 2014 in Where is / How to?

I FOUND IT!

Thank you TheRed555!

The code is:

import com.newgrounds.*;
API.postScore("Score Board Name", _root.score);


I have the ScoreBoard API in my game which is using AS2.
I can't for the life of me figure out how to get the score posted.

I'm using a _root.score= 0; function at the beginning of the game, and the score is raised with a _root.score +=1000; code.
What code do I use to get the score to submit to the board??

Any help is appreciated, thanks!

Response to: How to post score to ScoreBoard? Posted June 4th, 2014 in Where is / How to?

At 6/3/14 03:49 PM, Aprime wrote: You're in the wrong section... but anyway..

import com.newgrounds.API;
API.postScore(board_name:String, score:uint, tag:String);

More info here
Flash Forum

Very sorry for posting in the wrong section! I hardly ever use the forums, so I know very little about how to use it properly.

Anyway, I hope you don't mind me following you up on your answer though. Is that code really all I need to use in order for the score to post? In the code, there seems to be no mention of _root.score, so how would the code know what to send to the scoreboard?
Also, do I need to replace "string" with the name of my actual scoreboard (the one I named in the API settings of my game)?

Sorry if these questions are obvious, the Wiki page doesn't seem to elaborate much for those who are just starting out.

Thank you for your response, however!

Response to: How to post score to ScoreBoard? Posted June 3rd, 2014 in Where is / How to?

*bump*


I have the ScoreBoard API in my game which is using AS2.
I can't for the life of me figure out how to get the score posted.

I'm using a _root.score= 0; function at the beginning of the game, and the score is raised with a _root.score +=1000; code.

What code do I use to get the score to submit to the board??

Any help is appreciated, thanks!

Need comic narrator voice!!! Batman Posted January 15th, 2013 in Collaboration

I need a quick voice recording for the beginning of a Batman cartoon I am making.
Something similar to this:
http://www.youtube.com/watch?v=j1xtpsY0_LI

Message me if interested.

Looking for a Flash programmer! Posted October 12th, 2012 in Collaboration

Hey everyone!
I would like to work with someone to create a sidescrolling western game!
I have all the ideas down and would do all the artwork, I just need someone to program the damn thing for me because I have no idea what I am doing!
I'll do all the animations as well.

No deadline.

I'm not so sure how this collab thing works, so go easy on me if I don't understand some of the terms.

Looking for a Flash programmer!


Hey everyone!
I'm making a sidescroller in Action script 2. I have a background (the sky) but the problem is that the background won't stay behind the character; when I make my character walk, he just walks right past the sky and keeps going. How can I make it so that the sky follows my character so it looks more realistic?

Bonus question's:
How can I change the registration of a movie clip without having to edit every single frame?

Need to make background fixed (AS2)

Response to: I need help adding medals! Posted October 10th, 2012 in Where is / How to?

I want to make it so that when you click on a button symbol, it unlocks.

I need help adding medals! Posted October 10th, 2012 in Where is / How to?

Hey everyone, I am new to flash and want to add a simple medal to my flash soundboard.
When I go to the API section of my game, it tells me to add a code to it, something that looks like this:

import com.newgrounds.*;

API.unlockMedal("Your Medal Name");

Where do I put this code? I'm running Adobe Flash CS6 on a Macbook Pro. I have no idea where to add this code. Any help is wanted! Thanks!

Unscouted art section is slow Posted March 2nd, 2012 in Art

Is the unscouted art section loading slow for anyone else?