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.

FPSC Classic Product Chat / A tutorial for create easily a launcher

Author
Message
astrofan
16
Years of Service
User Offline
Joined: 22nd Apr 2008
Location: France, Hautes Pyrénées
Posted: 25th Apr 2008 13:28
Hi everybody !

(I'm french, so excuse me if I do some mistakes...)

Today we'll learn to easily create a launcher for your FPSC games!

We need three tools: Adobe Photoshop CS3, Adobe Flash CS3 (both free downloadable demo from Adobe) and mProjector!

First, we will launch Adobe Photoshop CS3 to the desing.

Create a new document 800x600 pixels, then you are going to the bottom of your pitcher. You will find many tutorials for Adobe Photoshop CS3 on the Internet.

Once you've finished, save this file format .png

Then you'll create a new image size 200 px wide and 50 px high, and there you will make your button, where you click to start your Thursday

Save this button format .png

Thereafter, close to launch Adobe Photoshop Flash CS3.

You create a new document in Flash Action Script 2.0 (especially not the 3.0).

Resize this document to 800x600 pixels (Edit menu> Document Properties).

Now when you click the OK button, go to the File menu> Import> Import into the library and select the two images that you just created.

If the window of the library is not open (on the right side of your screen), click on the menu Library> Bookstores Commons> Library.

Next, select the background image, and move it onto the work area. Then click on this image with the right button> Properties.

And as you put data:
Width: 800
Height: 600
X: 0
Y: 0

Your background image is now placed. Now, you click again with right-click on the image> Convert to Symbol, and there you select Button.

Again, you right-click it, then you click Actions.

A panel opens, and inside you'll enter this text:


on(press){
mWindow.startDrag();
}
on(release){
mWindow.stopDrag();
}


Then you'll move your button image in the work area, place it where you want, then with the text tool, you'll write it "Play". You will understand when you click on this button, the game will start. Finally not immediately ...

Thereafter, you click on the text, and holding down the Shift button, you click the button. And then, make right button above Actions.

And cut in the window which opened the following:


on(release){
fscommand('exec', 'Name_of_your_game.exe');
}


And replace "Name_of_your_game" by the name of the executable of your game

Repeat the same operation for the "Reduce", "Quit" and "Website" (if you have a website for your game)

and you copy the text following function buttons:

Reduce :


on(release){
mApplication.minimize();
}


Quit :


on(release){
mApplication.quit();
}


Website :


on(release){
getURL('url_of_your_website', '_blank');
}

After all that, go to the File menu, Export, Export animation

And you are exporting to ActionScript 2.0, Flash Player 7.0, JPEG quality: 100, Period Script: 999.

Then close Adobe Flash CS3, then run mProjector.

As source file the application, select the file. Swf you just exported, and then give a name to your launcher, and click Compile!

And now, you have your launcher. Exe, and 100% by you! You have something to be proud!

Astrofan
Punk13
17
Years of Service
User Offline
Joined: 7th Oct 2007
Location: In EpikLand!
Posted: 25th Apr 2008 18:40
Very Nice


ThanX
Punk13
astrofan
16
Years of Service
User Offline
Joined: 22nd Apr 2008
Location: France, Hautes Pyrénées
Posted: 26th Apr 2008 00:37
if you want see the result, go on my website, download my game, and play ! (it's just for multiplayers, and it's not start the game -_- but the launcher works =) )

Login to post a reply

Server time is: 2024-10-10 21:28:45
Your offset time is: 2024-10-10 21:28:45