Waiting for video to ends

orcomarcio

Veteran
Veteran
Joined
Nov 26, 2015
Messages
106
Reaction score
20
First Language
Italian
I was playing a video i an automatic execution event and it doens't wait for the movie to end. I managed to solve it using event pages and this line as a conditional branch argument


!Graphics.isVideoPlaying()


The thing is i wish it was more clean also i think that this should have been a basic feature of the program (maybe i missed something?).


Anyway, i there a way to obtain this more cleanly? It there a plugin or something like that that fixes this thing?


I working on a plugin for this by myself for now but if someone already has a solution he's welcome
 

orcomarcio

Veteran
Veteran
Joined
Nov 26, 2015
Messages
106
Reaction score
20
First Language
Italian
I solved it,


apparently the code after launching the video keep asking the Graphics class if the video is playing and if not it means it ended, but it doesnt take count of the fact that webm and mp4 are compressed and it takes more than a cycle for the video to start. This caused to code to think the video ened but he didnt' even started yet.


Here is the fix


EDIT: I made a new topic in plugin releases about this if you want to erase this topic


View attachment WaitForVideoEndFix.js
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,070
Members
137,577
Latest member
SadaSoda
Top