VideoPlayerPinball (VideoPlayer)
VideoPlayerPinball (AddOn)
This helper node for video has options to set looping and other in the inspector when added to the tree.
Tool: This can be added with Create New Node and searching in godot editor for control VideoPlayerPinball
Adding VideoPlayerPinball to Attract Mode
1. Using a duplicated BasicGame as starter project
- Open project with Godot
- Find the
Attract.tscnin the addonsres://addons/Modes/attract, right click and duplicate and give it a name,CustomAttract.tscn - Drag the
CustomAttract.tscnto the modes folder in the game project (or move in file computer system) - Open
MainScene.tscnin text editor and update the attract scene tores://modes/CustomAttract.tscn. Click Godot toReloadthe scene.
2. Editing the CustomAttract scene
- Delete the
Backgroundin the scene. This will remove the grey background behind the PUSH START text. - Select the top node,
Attractthen right click > add child Node. Search forVideoPlayerPinballand add one. * If this node isn’t in the search then the addons aren’t enabled. - Push the
Layoutbutton whilst selected on theVideoPlayerand anchor it to beFull Rectto fill the screen - Add your video file to the players Stream dropdown and use the options in the inspector.
- Check
Play When VisibleandLoopand run the game / scene