Putting video files into your game but keeping space small

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • So id like to put video files into my game. Specifically cut scenes.
    The only way ive been able to do this is use direct show and place them in the same folder as my game. But that would mean the player can just go through the folders and view all of the video files there?
    Is there a better way to do this so that all my video cutscenes are in game file itself and arent just externally lying around?

  • Perhaps there's a way to embed them, and someone can explain how.

    But if not, a (somewhat half-baked) solution could be to rename the file extensions. Eg. From *.Mp4 to *.dat or *.bla

    Then on launch you could use the file object to rename them all. And on quit you could rename them back.

    At least they wouldn't be super obvious, with thumbnails in Windows Explorer. And there'd be a slight barrier to people who want to view them. Though of course if your player alt-f4s out of your game, they would remain in *.mp4 form.

    Please login to see this link.
    My Fusion Tools: Please login to see this link. | Please login to see this link. | Please login to see this link.

  • I wonder how much compression Fusion provides vs using a movie file. Anyways, most 90's games for windows just had the video files in the folders, it was almost a source of pride :D

    Please login to see this link.

    Please login to see this link.

    Please login to see this link.

  • Would it possibly work to add it as binary data in the Data Elements window, then load them as necessary? I haven't tried that with video files so not sure how it works out.

  • If you put them in the Binary Files in the Data Elements editor, your files will be automatically extracted by the Direct Show object to a temporary file, that will be deleted when the Direct Show object is destroyed or the filename is modified. You haven't to modify your code, just add the files to the Binary Files, they'll be embedded into the EXE.

    However this can add a little delay before your videos start (as the program has to extract them to disk). If you prefer, you can extract yourself your file(s) manually, for example when the frame starts, with the Extract Binary File function, and then use the BinFileTempName$("pathname of your video file") to retrieve the pathname of the file in the temp folder, pass this pathname to the Direct Show object, and when you no longer need it, use Release Binary File action. Note: use the same normal pathname as parameter for all these functions, for example Apppath$ + "videos/video1.mp4".

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!