Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Play video at specific place

Author
Message
Manchu
17
Years of Service
User Offline
Joined: 2nd Jan 2007
Location: Here! of course
Posted: 14th Jan 2009 04:40
Hi, I'm working in a 3d project, I need that when I arrive at specific place, a video is played, but, when I go away from those place, the video isn't playing. I can arrive to the place several times, and always the video must be played. How to do it?
Veron
18
Years of Service
User Offline
Joined: 22nd Nov 2006
Location:
Posted: 14th Jan 2009 07:34
A pretty crude way to do it would be place a cube or a sphere in that specific area, hide it, and then check for collision between the player and the cube/sphere. If they're colliding, play the video. If they're not colliding, stop the video.

Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 17th Jan 2009 22:05
Or you could do a distance check between the player and the video area, only playing the video when the distance is small enough.

Login to post a reply

Server time is: 2024-11-25 12:39:39
Your offset time is: 2024-11-25 12:39:39