The GM Flash cutscene player (Complete)

Posted by mazimadu on Feb. 20, 2007, 6:48 p.m.

As I mentioned earlier, I was making a gm example that can play flash files as cutscenes. Since many of my cynics were skeptical I decided to release a screen shot of the example in progress.

<img src="http://img340.imageshack.us/img340/388/screenshot2eo9.png" alt="Image Hosted by ImageShack.us"/>

The only problem lies in the code for the flash file itself.

As you may know, the example can be downloaded anywhere and the necessary files must be in the same folder. The problem lies in a tiny piece of code that only understands URL as highlighted below.

<img src="http://img340.imageshack.us/img340/6969/screenshot1rf3.png" alt="Image Hosted by ImageShack.us"/>

I need to find a way to get it to open the intro1.swf file that is in the same directory as the game. I have now corrected this and it is posted.

Comments

Arcalyth 17 years, 2 months ago

use working_directory but change all of the s to /s

mazimadu 17 years, 2 months ago

Didn't work.

This is file URL and the intial [file://] must be there. I think it's the rest I change

poultry 17 years, 2 months ago

r=working_directory;

r=string_replace_all(r,"","/");

r="file://"+r

mazimadu 17 years, 2 months ago

How is this:

r = working_directory/intro3.swf;

r = string_replace_all(r,"","/");

r = "file://"+r

go_to(r);

mazimadu 17 years, 2 months ago

I used ChIkEn's code and I got the working directory.

I'm getting warmer

Rob 17 years, 2 months ago

This would be good if I knew how to use flash, but good work anyways.

!!!

flashback 17 years, 2 months ago

r = working_directory+"/intro3.swf"
r = string_replace_all(r,"","/")
r = "file://"+r
go_to(r);

mazimadu 17 years, 2 months ago

SUPERBNESS

IT IS COMPLETE.

Hikij 17 years, 2 months ago

So, how does Game Maker know when to move to the next room?

mazimadu 17 years, 2 months ago

well……It doesn't.

I'll just use a simple skip cutscene button so that you can quit whenever you want. It should destroy the browser to.