Skip to content

Player avatar

Display player avatars according to their GDevelop account.

Authors and contributors to this experimental extension: Bouh.


An object that displays a player avatar according to their GDevelop account. It can be used for multiplayer games.

Tip

Learn how to install new extensions by following a step-by-step guide.

Expressions

Expression Description
PlayerAvatar::UserID(number) Return the UserID from a lobby player number.
🔢 Number Lobby player number

Multiplayer Avatar

Display a player avatar according to their GDevelop account.

Object properties

  • Lobby player number (🔢 Number, Dimensionless). Default value is 0.
  • Border enabled (🔘 Boolean). Enable the border on the avatar. Default value is true.
See internal technical details
  • Lobby player number is stored as PlayerNumber (Number). Unit is Dimensionless. Default value is 0.
  • Border enabled is stored as BorderEnabled (Boolean). Default value is true.

Object actions

Player unique ID
Change the player unique ID of the avatar.

See parameters & details
  • Parameter 0: 👾 Object
  • Parameter 1: 🟰 Operator
  • Parameter 2 (🔤 String): Value

Technical note: parameter 3 is an internal parameter handled by GDevelop.

Technical note: this action internal type (in GDevelop JSON) is PlayerAvatar::PlayerAvatar::SetUserID.

Object conditions

Player unique ID
Compare the player unique ID of the avatar.

See parameters & details
  • Parameter 0: 👾 Object
  • Parameter 1: 🟰 Relational operator
  • Parameter 2 (🔤 String): Value to compare

Technical note: parameter 3 is an internal parameter handled by GDevelop.

Technical note: this condition internal type (in GDevelop JSON) is PlayerAvatar::PlayerAvatar::UserID.

Object expressions

Expression Description
Object.UserID() Return the player unique ID of the avatar.

This page is an auto-generated reference page about the Player avatar extension for GDevelop, the open-source, AI-powered, cross-platform game engine designed for everyone. Learn more about all GDevelop extensions here.