Difference between revisions of "videoPage(whichPage, which folder, clip0, clip1, which folder, clip0, clip1, priority, vectorPage, vidCommand)"

From pinHeck Wiki
Jump to: navigation, search
 
Line 1: Line 1:
Kernel 3 has (8) video pages which are stored in memory. Each page has its own set of (8) graphics which can include scores, progress bars and sprites.
+
Overloaded function version of videoPage.
  
This command loads [whichpage] with both the front [folder, clip0, clip1] and back [second folder, clip0, clip1] layers at [priority] priority level.
+
Works the same way as videoPage, but loads both video layers (0 and 1) of the page at the same time.
  
 +
The first video specified (0) is the foreground layer. Black pixels act as transparency. The second video specified (1) is the background layer. It is only visible through the black pixels of the foreground layer.
  
== whichPage ==
+
When two videos are running the frame rate is cut in half to 15 FPS. The playback of each layer can be controlled separately with the videoControl() function.
 
+
Sets which page this video should be loaded in, from 0-7.
+
 
+
 
+
 
+
 
+
When the video ends, the system will jump to [vectorPage] page. If the two layer videos are of different lengths, the vector jump will occur when the shorter video reaches its end.
+
 
+
[vidCommand] tells the system what to do with this page we just loaded:
+
 
+
'''vidCommands defines:'''
+
 
+
''loadNormal'' - Sets up a video page but doesn't load it yet. Use this when setting up several pages that you want to cycle between.
+
 
+
''loadNew''    - Sets up a video page and immediately runs it. Use this when you want to start playing a new loop.
+
 
+
''loadInt''    - Use this to play a quick video, then return to whatever loop was already playing. When using loadInt you don't need to set a vectorPage the system does this automatically.
+
 
+
''loadQueue''  - Not yet implemented.
+
 
+
fghfg
+

Latest revision as of 03:17, 18 October 2016

Overloaded function version of videoPage.

Works the same way as videoPage, but loads both video layers (0 and 1) of the page at the same time.

The first video specified (0) is the foreground layer. Black pixels act as transparency. The second video specified (1) is the background layer. It is only visible through the black pixels of the foreground layer.

When two videos are running the frame rate is cut in half to 15 FPS. The playback of each layer can be controlled separately with the videoControl() function.