| Toolshed Games score API How To. |
| Currently we only have an example available in AS2. |
|
AS 2
Just add this code to your game. CODE. var ScoreAPI = new LocalConnection();
var score:NUmber=12345;
12345 shold be replace with your score. add: _lockroot=true; to the first frame of your game. please include either the .swf file of the url where the game file can be located.
Also include what game mode you will be submitting score for. Your game can be played as easy , medium or hard so scores are sent as
ScoreAPI.send(_root.lcName, "sendScore", 12345,"easy")
if you game does not use modes please send finally please indicate if a high score is better or a low score is better
exmple
Example email Hi,
atttach is the swf to my new game "game name".
Once you have added the code to your game please send you game to submitgames@toolshed.co.uk. Thanks very much. |