-
Notifications
You must be signed in to change notification settings - Fork 0
Video module
syeyoung edited this page Jul 16, 2020
·
1 revision
Video module contains blocks defined in the video extension
Video module can be imported via
Require "Video";
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
Video::OnMotionGreaterThan : event that trigger when video motion is greater than given parameter (Requires expression/constant/variable parameter)