Rex's plugins for Construct2
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About

rex_ngio_authentication

Plugin, ACE table, Discussion thread
Dependence: None

Introduction
Authentication which is provided by Newgrounds.io.
This is also a base plugin for other rex_ngio_xxxx plugins.

Get started

Usage
Sample capx
App id and AES key
Designer could find App id in the dashboard, under "API Tools" -> "App Information" section. AES key could be found in "Encryption Settings" -> "AES-128"  section at the same page.

Login
Call "
Action:Login" to login by newgrounds' account. It will open a new tab to sign-in. One of this conditions will be triggered as the result.
  • "Condition:On login": login successful, get properties of this user by these expressios-
    • Expression:UserName
    • Expression:UserID
    • Expression:UserIconURL( size ): size code can be 0/"s"/"small", 1/"m"/"medium", 2/"l"/large",
  • "Condition:On login error": login failed
  • "Condition:On login cancel": login canceled in sign-in page
Load user icon
User icon might not load into sprite directly because "Access-Control-Allow-Origin" in server. Designer might try to load icon to image element by Pode's plugin.
Logging out
Call "Action:Logging out" to logging out current account. "Condition:On logged out" will be triggered while logging out.

Debug
Set property "Debug" to "Yes" to enable debug mode.
Debug panel
User name, UserID of current user will be shown at debug panel.

Create a free web site with Weebly
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About