ProtoFlux

From Resonite Wiki
Revision as of 08:31, 12 January 2024 by Zyro (talk | contribs) (Added additional text to describe the usage of ProtoFlux. (First edit on a wiki ever, yayy))

Introduction

Protoflux
The official ProtoFlux logo

ProtoFlux is a Node based scripting language that can be manipulated in 3D space using the ProtoFlux Tool.

ProtoFlux is the crown jewel of our creative tools - the most powerful visual programming language that our experienced team has designed to date, which lets you quickly prototype and build anything from simple interactions to complex games and systems - with full real-time collaboration support and immediate feedback. Build anything from avatar and world interactivity, to complex systems, and games.

https://resonite.com/features.html

Usage

ProtoFlux is represented in the world as nodes that can be spawned from the ProtoFlux Node Browser.

You can easily spawn a ProtoFlux Tool from the Resonite Essentials folder included in your Inventory to begin scripting with ProtoFlux.

ProtoFlux can be quickly packed and unpacked from a Slot contained on an item, avatar, world, or wherever you wish to store it.

Variables

In ProtoFlux, there are 3 types of generic variables:

  • DataModelStores
  • Stores
  • Locals

The simplest type of variable is a DataModelStore. It's automatically synced to all users upon being written to. Most simple scripts can be done entirely with these, but it does leave a small chunk of performance on the table.

The natural progression down the list is a Store. It's similar to standard variables in most languages. It does not get synced over the network, which alleviates the overhead of doing so, but could cause desync.

Lastly, we have locals. They're instanced for different execution chains, so if your flux is called twice at once, you can write to the variable from both, they will each use a unique instance of the variable that gets discarded when that execution ends.