Skip to content

Video module

syeyoung edited this page Jul 16, 2020 · 1 revision

Video Module

Video module contains blocks defined in the video extension

Video module can be imported via

Require "Video";

Defined Functions

Video::turnOn() : turn on video

Video::setVideoTransparency(transparency: Text) : set transparency of video to transparency

Video::getAttributeOn(attribute: Text, sprite: Text) : get video attribute attribute (Can be "motion" / "direction" on sprite sprite (Expression only)

Video::turnOff() : turn off video

Video::setState(state: Text) : set State of video - Not recommended using it directly

Video::turnOnFlip() : turn on video but it's left-right flipped

Defined Events

Video::OnMotionGreaterThan : event that trigger when video motion is greater than given parameter (Requires expression/constant/variable parameter)

Clone this wiki locally