Ninjutsu Games
Asset StoreYoutubeTwitterInstagramSupport
  • 🖐️Welcome!
  • Game Creator 2
    • ☢️Fusion Module
      • Setup
      • Sessions
      • Characters
      • Variables
      • Remote Procedure Calls
      • Settings
      • User Interface
      • References
        • Shutdown Reasons
      • Guides
        • How to test my game
        • How to toggle Debug mode
        • How to Update Fusion SDK
      • Releases
      • 🤝Fusion Factions
        • Releases
      • 💫Fusion Stats
        • Releases
      • 📦Fusion Inventory
        • Releases
      • 🧙Fusion Abilities
        • Releases
      • ⚔️Fusion Melee
        • Releases
      • 🔫Fusion Shooter
        • Releases
    • 🤝Factions
      • Setup
      • Faction Asset
        • Settings Editor
      • Member
        • Memory
      • Visual Scripting
        • Conditions
        • Events
        • Instructions
        • Properties
      • User Interface
      • Releases
      • 🌐Photon Factions
    • 🎮Coop
    • 👑Loot Locker
      • Getting Started
      • Authentication
        • Guest
        • White Label
        • Google
        • Steam
        • Apple Sign In
      • Sessions
      • Save Load
      • Players
        • Player Storage
        • Names
      • Leaderboards
        • Visual Scripting
      • Messages
      • Progressions
      • Replenish System
      • Date Time
        • Server Time
      • Handling Errors
      • Releases
    • 🤖State Machine 2
      • Graph Editor
      • State Machine Runner
      • Nodes
        • Node Features
      • Variables
      • Shortcuts
      • Releases
    • 🌐Photon Module 2
      • Overview
      • Releases
      • 🔫Photon Shooter
        • Getting Started
        • Releases
      • 💫Photon Stats
        • Releases
      • 📦Photon Inventory
        • Overview
        • Releases
      • 🧙Photon Abilities
        • Releases
      • ⚔️Photon Melee 2
        • Troubleshooting
        • Releases
  • Game Creator 1
    • Photon Network
      • Overview
      • Characters
      • Network Items
      • Actions
      • Conditions
      • Triggers
      • Guides
        • How to Connect and Instantiate your Player
        • Instantiation Options
        • How to Sync Attachments
        • How to display room or other network information
        • How to setup Camera Motor
        • How to test my game
      • Sub-Modules
        • 🏃Photon Traversal
        • ⚔️Photon Melee
        • 🔫Photon Shooter
          • Changelog
      • Changelog
    • State Machine
      • Editor Graph
        • Nodes
        • Blackboard
        • Copy & Paste
        • Targets
      • Export State Machines
      • Changelog
    • RPG (Deprecated)
      • Actor
        • Actions
        • Conditions
        • Triggers
      • Attributes
        • Actions
        • Conditions
      • Classes
        • Actions
        • Conditions
      • Skills
        • Actions
        • Conditions
      • Formulas
      • Changelog
    • AI & Factions (Deprecated)
      • Changelog
Powered by GitBook
On this page
  • Synchronizing Actions
  • Action Photon Connect
  • Actions Photon Disconnect
  • Action Photon Instantiate
  • Action Create Room
  • Action Join or Create Room
  • Action Join Room
  • Action Kick Player
  • Action Leave Room
  • Action Reconnect
  • Action Reconnect and Rejoin
  • Action Rejoin Room
  • Action Send Photon RPC
  • Action Score
  • Action Player Property
  • Action Room Property
  • Action Start Timer
  • Action Photon Change Text

Was this helpful?

  1. Game Creator 1
  2. Photon Network

Actions

PreviousNetwork ItemsNextConditions

Last updated 9 months ago

Was this helpful?

The Photon module comes with a set of Actions that complement Game Creator's. All actions can be used on any other module

Most of the Actions won't work if you are not connect to the Photon Service unless you have offline mode activated.

Synchronizing Actions

Synchronizing Actions it's just as easy as a single click. Once the module it's installed you will notice a new tab called "Network Settings" below the Action's Inspector in order to make this work just go ahead and enabled the option "Sync Actions" that's pretty much it (well that was actually 2 clicks).

This requires to be within a room to work. Nothing happens if not.

If you are synchronizing actions some times you might need to use target Invoker instead of Player

Notice that this will add a Photon View component to the game object.

Action Photon Connect

Allows you connect to the Photon Service, parameters:

  • Game Version: this client's version number. Users are separated from each other by game version (which allows you to make breaking changes).

  • Methods: this action allows you to connect using 3 different method types:

    • UsingSettings: Connect to Photon as configured in the PUN settings

    • Region: Connects to the Photon Cloud region of choice.

    • BestCloudServer: Connect to the Photon Cloud region with the lowest ping.

Connecting to the Photon Cloud might fail due to:

- Invalid AppId calls: OnFailedToConnectToPhoton. check exact AppId value

- Network issues calls: OnFailedToConnectToPhoton

- Invalid region calls: OnConnectionFail with DisconnectCause.InvalidRegion

- Subscription CCU limit reached calls: OnConnectionFail with DisconnectCause.MaxCcuReached. also calls: OnPhotonMaxCccuReached

Actions Photon Disconnect

Makes this client disconnect from the photon server, a process that leaves any room and calls OnDisconnectedFromPhoton on completion.

Action Photon Instantiate

Instantiate a prefab over the network. There is 2 types of instantiations:

  • Player Object: the owner of the object is the player. Normally when player disconnects all instantiated player objects will be destroyed.

  • Scene Object: the owner of the object is the scene. The object will always be there unless someone destroys it.

This prefab needs to be defined in Prefabs list from Photon Preferences Settings or located in the root of a "Resources" folder.

Action Create Room

Action Join or Create Room

Action Join Room

Action Kick Player

Action Leave Room

Action Reconnect

Action Reconnect and Rejoin

Action Rejoin Room

Action Send Photon RPC

Action Score

Action Player Property

Action Room Property

Action Start Timer

Action Photon Change Text

Once you enabled Sync Actions you can select the you want to synchronize with.

targets
(Example of the built-in sync actions inspector)