The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.38 / 5.00 36,385 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.07 / 5.00 13,902 ViewsI FOUND IT!
The code is:
import com.newgrounds.*;
API.postScore("Score Board Name", _root.score);
Thanks to TheRed555
Original post can be found here
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!
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!
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!
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.
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.
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?
I want to make it so that when you click on a button symbol, it unlocks.
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!
Is the unscouted art section loading slow for anyone else?