Field
Introduction
These are the attribute values pertaining to players.
The playerโs nickname (name), location (tileX / tileY), etc. can be viewed. The playerโs spotlight (spotlight) feature and hide (hidden) feature can be activated. The playerโs movement speed (moveSpeed) and image (sprite) can be adjusted. Itโs also possible to utilize the Space's storage (storage) for storing player values.
๐ Fields with this icon are read-only fields that cannot be revised.
๐ id
Player ID value
name
Player Nickname value
title
Text to be displayed in yellow above an avatarโs nickname
๐ role
A numerical value that represents a playerโs permissions
๐ tileX / tileY
The X and Y coordinate values where the avatar is standing
๐ dir
A value representing the direction a player is looking
moveSpeed
A value representing the playerโs movement speed
sprite
An avatarโs sprite image value
tag
Value storage space to assign required attribute values
hidden
If the value is set to true, the player is invisible
spotlight
Toggle player spotlight
๐ disableVideo
Toggle player video
๐ disableAudio
Toggle player audio
attackType
Playerโs attack type when z is pressed
attackSprite
Playerโs attack image value when z is pressed
attackParam1
Distance value that affects how far the attack image flies
attackParam2
Distance value available for attack
Only valid when attackType is set to 2 (ranged attack)
๐ walletAddress
The playerโs wallet address value
storage
Storage space for player values in the Space (limited to the Space)
๐ isMobile
Whether the player is connected via mobile
๐ isMoving
If the player is moving, returns True. If not, returns False
๐ isJumping
If the player is jumping, returns True. If not, returns False
customData
Can read the URL query string and save the value
displayRatio
Zoom in or out player's display
titleColor
Player's title color
๐ emailHash
The hash value of the player's email
๐ isGuest
If the player is not signed in, returns True.
๐ API Description and Examples
id , name
Calls the player ID and nickname values.
Example
Make the playerโs ID and nickname value display when a player enters.
title
Title is a yellow text that displays above the avatarโs nickname.
Example
Set up a title for a player when they enter.
role
Role is the playerโs permission rolesโ number value.
The following values will be displayed depending on the playerโs role.
Guest
-1
Staff
2000
Member
0
Admin
3000
Editor
1000
Owner
3001
Example
Display the permission role value in the chat screen.
tileX, tileY
The x axis value and y axis value of where the playerโs avatar is standing.
Example
Display my avatarโs x and y coordinates.
dir
The direction the playerโs avatar is looking.
The following values are displayed depending on the direction the avatar is looking.

Left
1
Top-Left
5
Up
2
Bottom-Left
6
Right
3
Top-Right
7
Down
4
Bottom-Right
8
Example
Display the value of where the avatar is looking.
moveSpeed
This is the playerโs movement speed value. (Default Value: 80)
If the movement speed value is 0, the player cannot move.
Example
Increase the movement speed when q is pressed.
sprite
A sprite image of the playerโs avatar. (Resets to the default avatar image when inputting null)
Check the Understanding Sprite Sheets page if itโs your first time hearing about sprite images.
Example
Apply the Paintman-Blueman image as the avatar image.

tag
Give necessary attribute values to a player by using tag.
Example
Give a player the โaliveโ attribute value. The โaliveโ attribute value is a deliberately created attribute.
If the attribute is unused, it wonโt be a useful attribute value. In this case, the "alive" attribute value can check if a player has been eliminated from a game or not.
hidden
If the hidden attribute value is true, the corresponding player is not visible to other players.
The avatar in a hidden state is not visible, but it is possible to connect the video and audio.
Example
Give an avatar the hidden attribute to make the avatar not visible to other players.
spotlight
This activates or deactivates the playerโs spotlight feature.
Example
Make a function that turns the spotlight feature ON or OFF by pressing q.
disableVideo, disableAudio
This activates or deactivates the playerโs video/audio features.
Example
Display in the chat screen if the video and/or audio are deactivated or not.
attackType
This is a playerโs attack type performed by pressing z. (default value: 0)
0
If the attackType is not set up, it means it is set to the default attack type.
Example
Change the avatarโs attackType.
attackParam1
This is an attribute for the attack imageโs distance range shown when pressing z. The attackโs possible distance range does not increase.
Example
Change the attackParam1.

attackParam2
This is an attribute for distance available for attack. This is only valid when attackType is set to a ranged attack.
Example
Set a ranged attack using attackParam2.

attackSprite
This is an attribute for the attack image shown when pressing z.
Example
Apply the boxing gameโs glove attack image.

walletAddress
This is the playerโs wallet address.
Example
Call the wallet address. If there is no wallet address, the results called will be null.
storage
This is the storage space for the player value within the space. (Limited to the Space)
Example
Store the data in player storage and check it.
Even after closing the app and restarting it, the stored values will not disappear.
isMobile
This displays whether the player is connected via mobile in true or false.
Example
Display mobile PC status in the entry message when a player enters.
isMoving
If the player is moving, this function returns True. If not, this returns False.
Example
Detect the player's movement and display a message.
isJumping
If the player is jumping, this function returns True. If not, this returns False.
Example
Detect the player's movement and display a message.
customData
This field saves the value received as a query string.
Example
displayRatio
This function zooms the player's display in or out. (Default Value: 1)
Example
Create a key to zoom in or out.


titleColor
This function can read and change the player title's color.
You can enter enum values or hex code values.
Example
Change the title color.

emailHash
This function reads the hash value of the player's email.
Example
Display the hash value of a player.
isGuest
If the player is not signed in, this function returns True.
Example
Show "GUEST" as a title when a guest who is not signed in enters.
Last updated
Was this helpful?