Your own properties, events and scripts

Formo team · 29 May 2026

Hello,

Formulas let a property depend on others. This week you can create the properties yourself, and make things react when someone clicks.


Custom properties

A shape has the properties we thought of: position, size, colour. Your project has others. A character has "health", a lamp has "brightness", a card has "price". The idea of your own properties goes back to our early sketches, and now it is in the editor: add a custom property to any node, give it a name and a type, and use it everywhere a normal property works: in formulas, on the timeline, and in the Properties panel, with undo.

A property can also be global: a document-level property that every formula in the project can read as a variable, with autocomplete to help you. Change "brightness" once, and every lamp that uses it in a formula changes.

Make up a property, point a formula at it, and animate it like any other.


Events and methods

Events, the old "when this happens, do that", are in the editor too: when a shape is clicked, when a tick of time passes, when something starts. The multiline editor lets you write what should happen, and you can edit events on several nodes at once.

A method is a named action a node knows how to do, like open() or explode(). Methods can take arguments, return a result, and be called from events or from other methods. An event can pass several arguments along to it.

Everything runs in Play mode, so you can click your own button as a user would.

The button's click event calls the lamp's method.


Classes

For bigger ideas you can write a whole class in TypeScript: a template for objects that carry their own data and methods, for example an "Enemy" with health and a hit() method. Create instances, use them from events and formulas. They live in the project, so they are still there after you save and load.

Hotkeys: Space — Play / Stop


Groups, reworked

Grouping got a tune-up too: groups and their Properties panel share the same controls now, and pressing Ctrl+G twice no longer wraps the children into another group.


Select, copy and move in the Layers panel

Big projects have long layer lists, and a long list needs the shortcuts everyone knows from file managers.

In the Layers panel, Shift+click selects a range, Ctrl+click (Cmd on Mac) adds or removes one item, and Alt+drag drops a clone, the same Alt-drag you know from Foximation. Dragging on the canvas never moves a shape into or out of a group by accident any more; membership changes only in the tree, where you can see what is happening. Animated nodes that you move into or out of a frame take their animation with them. The tree also previews an open path as its real centre line, instead of a box.

The lists in the Properties panel work the same way: select fills, strokes, effects, events, methods or custom properties in a list and paste them onto another node, as one undo step.

Video

Range, toggle, clone: the same gestures as your file manager.


Add one custom property to a shape you already have, and tie something to it.

As always, let us know what you think on our Discord.

On this page

Formo

The browser studio where drawings become animations, toys, and games. Your files, nothing to install.