+2 votes

Hello everyone
I'm creating a terror game(3D) , and I basically want the TV to play a video when it's turned on, but how can I do it? I tried using viewport and preloadscene but I can't make it work, the TV is a separate scene ...

TV scene = https://imgur.com/gd5Llsj
TV in game = https://www.youtube.com/watch?v=cjG54atV6vc&feature=youtu.be

in Engine by (16 points)

1 Answer

0 votes

I know it's a bit late, and if you've found an answer please tell us!

For anyone wondering, I think you can't play directly a video. What you could do instead, is the following:
- Extract the individual frame of your video
- Create an AnimatedTexture with the said frames, and place it on your TV screen
- Add a AudioStreamPlayer3D with the sound
- Play them when needed.

by (621 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.