Skip to content

Scripts

Nate River edited this page Jun 24, 2025 · 14 revisions

What are scripts?

Scripts are sets of instructions used to create interactive animations. For example, you can create clickable buttons and assign actions for them.

Where do scripts work?

Scripts work only inside Pixel Studio and Pixel Network starting from the version 5.30. You can't export scripts to GIF and other image formats, except PSP/PSX.

Why do I need script?

Well, you can create funny things and publish them on Pixel Network.

What project templates support scripts?

As scripts are attached to layers unique for each frame, they are supported in Simple Template only.

How to use scrips?

  • Open Layers toolbar
  • Select a layer
  • Open Layer menu
  • Press Script manager
  • Create a new script with Script builder

What does a script consist of?

  • Trigger defines how the script is executed
    • Script is executed autmatically when the animation reaches the selected frame
    • Button is executed when the button is pressed (the button rect is calculated from the current layer as containing pixels)
  • Action defines what happens when the script is executed
    • StopAnimation: stop the animation (can be used to stop the animation to allow users to press buttons)
    • JumpToFrame: resume the animation from the desired frame (can be used to move across the animation and create independent loops)
    • PlayAudio: play an audio clip from Sound Library
    • PlayAudioFromInternet: download an audio clip from URL and play
    • StopAudio: stop all audio playing
    • Vibrate: vibrate (when supported)
    • ShowMessage: show a text message
  • Parameter defines a factor for actions like frame index or sound name

How to preview scripts?

  • Press Menu / Preview
  • Preview when uploading to Pixel Network

Playing animations from Animation panel runs them as usually, with no scripts.

What's next?

Create your own story, dialogs, comics, games, or maybe piano players and DJ desks =)

Tips

  • Layers containing scripts are marked with the green </> label
  • If a layer contains scripts, you can open Script Manager just by pressing layer's name

Clone this wiki locally