00:00
00:00

Our goal is for Newgrounds to be ad free for everyone! Become a Supporter today and help make this dream a reality!

Browse Sections

Newgrounds Wiki: getUserID

Usage

import com.newgrounds.API;
var user_id:Number = API.getUserID();
This call returns the ID of the user currently playing your game or movie, or if the user is a guest, returns 0.