CrazyGames SDK v3
Allow games to be hosted on CrazyGames website, display ads and interact with CrazyGames user accounts.
Authors and contributors to this community extension: planktonfun, Bouh, ZachjuKamashi, lhphr.
Refer to the CrazyGames guide for a full overview of the CrazyGames SDK, and to this guide for using this SDK inside your GDevelop game.
Tip
Learn how to install new extensions by following a step-by-step guide.
Actions
Retrieve user data
Retrieve user data.
Display a banner
Display a banner that can be called once per 60 seconds.
Display video ad
Display a video ad. The game is automatically muted while the video is playing.
Display happy time
Display an happy time by emitting sparkling confetti. The celebration should remain a special moment.
Generate an invite link
Generate an invite link to invite friends to join your game sessions. This URL can be added to the clipboard or displayed in the game to let the user select it.
Generate Xsolla token
Generate Xsolla token.
Hide all banners
Hide all banners.
Hide a banner
Hide a banner.
Hide invite button
Hide the invite button.
Display invite button
Display an invite button.
Show account link prompt
Show account link prompt.
Load SDK
Load CrazyGames SDK.
Save session data
Save the session data.
Scan for ad blockers
Scan for ad blockers.
Gameplay started
Let CrazyGames know gameplay started.
Gameplay stopped
Let CrazyGames know gameplay stopped.
Loading started
Let CrazyGames know loading started.
Loading stopped
Let CrazyGames know loading stopped.
Show CrazyGames login window
Show CrazyGames login window.
Check and load if an user is signed in CrazyGames
Check if an user is signed into CrazyGames. If signed in, retrieves username and profile picture.
Conditions
Video ad just finished playing
Checks if a video ad just finished playing successfully.
Video ad had an error
Check if a video ad had an error.
CrazyGames User ID
Compare the CrazyGames User ID.
Ad blocker is detected
Check if user is using an ad blocker. This condition is always false before the "Scan for ad blockers" is called.
CrazyGames SDK is ready
Check if the CrazyGames SDK is ready to be used.
Is user account available
Compare the availability of the user's account.
Video ad is playing
Checks if a video ad is playing.
Get last error
Compare the last error from the CrazyGames API.
User changed
Check if the user changed.
Username
Compare the username.
User is signed in
Check if the user is signed in.
Expressions
Expression | Description | |
---|---|---|
CrazyGamesAdApi::CrazyGamesUserID() |
Return the CrazyGames User ID. | |
CrazyGamesAdApi::Environment() |
Get the environment. | |
CrazyGamesAdApi::InviteLink(string) |
Return an invite link. | |
string | Room id | |
CrazyGamesAdApi::InviteParam(string) |
Get invite parameters if user is invited to this game. | |
string | Param | |
CrazyGamesAdApi::IsDisableChat() |
Return true if the user prefers the chat disabled. | |
CrazyGamesAdApi::IsInstantMultiplayer() |
Return true when the user prefers to instantly join a lobby. | |
CrazyGamesAdApi::IsUserAccountAvailable() |
Return the availability of the user's account. | |
CrazyGamesAdApi::LastError() |
Return the last error from the CrazyGames API. | |
CrazyGamesAdApi::LinkAccountResponse() |
Get link account response. | |
CrazyGamesAdApi::ProfilePic() |
Get user signed in profile picture url. | |
CrazyGamesAdApi::SessionData(string) |
Get user session data. | |
string | Id | |
CrazyGamesAdApi::SystemInfo() |
Retrieves user system info, browser, version and device. | |
CrazyGamesAdApi::UserName() |
Return the username. | |
CrazyGamesAdApi::UserToken() |
Retrieve the user's session token for authentication. | |
CrazyGamesAdApi::XsollaToken() |
Retrieve the authentication token from Xsolla. |
This page is an auto-generated reference page about the CrazyGames SDK v3 extension, made by the community of GDevelop, the open-source, cross-platform game engine designed for everyone. Learn more about all GDevelop community-made extensions here.