Update version v1.3.0


New Features: Player & Room Management Tools

Added new functions to enhance player management and room control in PhotonJS for GDevelop! Here’s what’s new:

🎮 Player Management

GetLocalPlayerName(): Retrieves the name of the local player.

SetLocalPlayerName(name): Sets the local player’s name.

GetPlayerName(playerID): Retrieves the name of a specific player in the room.

🛠️ Tools

ServerTimeMs(): Fetches the current server time in milliseconds. Useful for syncing events across players.

🏠 Room Management

SetPlayerTimeToLive(ms): Defines how long a disconnected player’s data remains before removal.

SetRoomTimeToLive(ms): Sets how long an empty room stays open before being deleted.

SetIsOpen(bool): Controls whether new players can join the room.

SetIsVisible(bool): Toggles the room’s visibility in the room list.

These features help you create a more flexible and dynamic multiplayer experience. Let us know how they work for you! 🚀

Get Gdevelop 5 photon engine extension

Buy Now$32.73 USD or more

Leave a comment

Log in with itch.io to leave a comment.