Be a Supporter!

Ng Api For Stencyl

  • 221 Views
  • 4 Replies
New Topic Respond to this Topic
RougeMonkey
RougeMonkey
  • Member since: Aug. 5, 2013
  • Offline.
Forum Stats
Member
Level 01
Gamer
Ng Api For Stencyl 2013-08-05 05:57:38 Reply

Can you get the API for stencyl?

brutalexcess
brutalexcess
  • Member since: Sep. 14, 2011
  • Offline.
Forum Stats
Member
Level 02
Game Developer
Response to Ng Api For Stencyl 2013-08-07 07:10:50 Reply

At 8/5/13 05:57 AM, RougeMonkey wrote: Can you get the API for stencyl?

It is possible to put in custom code into individual actor's in the Stencyl program. Go to the selected actor, click on Flow in the Palette tab and then go to Advanced. Under there you will find the Code slot, so if you know ActionScrpt 2 or 3 (depending on what version your using for the Stencyl project), you can use the API there.

I am not hugely sure how you import the API though. I am still looking through the WIKI on NG on how that is the case.


Ignorance will become the death of us.

BBS Signature
brutalexcess
brutalexcess
  • Member since: Sep. 14, 2011
  • Offline.
Forum Stats
Member
Level 02
Game Developer
Response to Ng Api For Stencyl 2013-08-07 07:16:53 Reply

Also, I would strongly suggest taking a look here: http://www.newgrounds.com/wiki/creator-resources/flash-api/c onnecting-to-the-api

That will tell you how to setup up a Connector to the NG API in your code.

If you create Scene Behaviour in your Logic (on the Dashboard), you can drag and drag the Code form into the Behaviour, you can apply that behaviour to each and every screen accordingly.


Ignorance will become the death of us.

BBS Signature
brutalexcess
brutalexcess
  • Member since: Sep. 14, 2011
  • Offline.
Forum Stats
Member
Level 02
Game Developer
Response to Ng Api For Stencyl 2013-08-07 08:18:44 Reply

I completely missed this out... in Stencyl there is Game Settings, and under the Web tab, there are API keys which you can connect to, of them are the Newgrounds API ID and Game Key, which you will need to put in before you can start using the Newgrounds API in your game. Hope this helps.


Ignorance will become the death of us.

BBS Signature
RougeMonkey
RougeMonkey
  • Member since: Aug. 5, 2013
  • Offline.
Forum Stats
Member
Level 01
Gamer
Response to Ng Api For Stencyl 2013-08-12 04:54:36 Reply

At 8/7/13 08:18 AM, brutalexcess wrote: I completely missed this out... in Stencyl there is Game Settings, and under the Web tab, there are API keys which you can connect to, of them are the Newgrounds API ID and Game Key, which you will need to put in before you can start using the Newgrounds API in your game. Hope this helps.

Thanks For the help!!