Cách làm 1 đoạn Intro???

Tìnhyêu36kế

C O N T R A
Tham gia ngày
22/11/05
Bài viết
1,653
Reaction score
48
Mọi người ai biết thì dịch hộ em bài này với, em xem mà chả hiểu gì cả! hu hu! chán quá hà!
Scrolling Text

So, what is the very first thing I want the player to see? Probably not just jumping to control of the hero. I decide on some scrolling text giving the player a short introduction to the world. I open up my graphics program, and make this image:
Scrolling_intro.png

Great! Now, I just need to show it to the player. I make a new map, and add nothing to it. That white square will show up as black to the player. Click to enlarge:

The standard position for autorun and parallel process events is the upper right corner of a map. Wherever you choose to put them, make it consistant. I make an autorun event up in the corner. In it, I show the picture "below" the viewing area, then scroll it up. The first time I try it, the text scrolls too fast, so I break the movement up into two move pictures, since the maximum number of frames it can take for one movement is 1000. Click the images to enlarge.



A little something about screen coordinates. The very top left pixel on screen is (0, 0), and the very bottom right pixel is (640, 480). Thus, when I initially assign the image's x and y coordiantes, I put it at (0, 480), just off the screen and all the way to the left. When I move it the first time, I move it up to (0, -610), still all the way to the left, and now the top left corner of the image is 610 pixels "above" the top of the screen. The second time I move it to (0, -1700), which means that only the very bottom of the image will be visible. See how that works? Well, if you don't, check out the project file I will be linking shortly.

Playtesting that, it looks pretty good. But you know what would make it better? Having the text fade in and out as it scrolled onto the screen. Using my graphics program, I make a gradient from black that becomes transparent on a 640x480 image. I then copy that gradient and paste it on the top of the image, resulting in this:
gradient.png

Now I just show that image over the scrolling text image.
intro_event03.png

Now that looks pretty.
http://img.photobucket.com/albums/v226/ccoa0/Chance/intro_screen01.png
All that's left is to pick out some music. I go through my resource collection, and browse around online, until I find some music I think fits, in this case a nice piece by illustrationism. I then import it using the Materialbase, and set it as the background music for the blank map. Right click on the map, and select Map Properties...
map_properties.png

Now when the text scrolls, the music plays. But what's this? The music is almost perfectly the right length, but it starts over in the last few seconds of the intro. I don't really want that, so I go back to the Materialbase, and delete the song I just imported, and then import it as a Music Effect (ME). I go back to the map properties and remove it as the music for that map, and then put in a Play ME event command in the autorun event:
intro_event04.png

Now, let's go through this finished event in more detail.
ME Event command

This is the Play ME event command, located on the second page of event commands. Music Effects, or ME's, play only once, unlike background music. They're generally used for things like inn music, victory music at the end of a battle, or celebratory music when you find a key item. In this case, we're using it in a slightly nontraditional way, but making RPG's is all about thinking outside the box.

The 100 and 100 following the ME command are the volume and pitch of the ME, respectively. Volume is obviously how loud the ME should be, with 100 being the loudest and 0 being inaudible. Pitch is how fast the ME should play, 100 being at 100% speed (or rather, normal). You can play it at up to 150% speed, or as low as 50%.
Show Picture event command

This is the command to show images you've imported as pictures. The dialog for doing so is a little complex, so let's take a closer look.
show_pic_dialog.png

The first thing you see is the number. This is a handle on the image, so that you can later move and erase it. Generally, I number pictures in the order that I show them, so I can remember which is which.

The second is the picture name. You can select any of the pictures you've imported from here.

Next we come to the display position. The first option is the origin. This is what point on the image the program will use when placing the image. If you select Upper Left, and place the image at screen coordinate 0,0, then the upper left corner of the image will be at the upper left corner of the screen. If you pick Center, and place the image at screen coordinate 0,0, then the center of the image will be at the upper left corner of the screen, and only the lower right quarter of the image will be visible.

Also in the Display Position is the X and Y coordinate. Here, you have a choice: you can either specify a X and Y coordinate yourself, or you can load an X and Y coordinate from two variables. Loading from variables becomes important when making event systems and the like.

In the lower left corner, there are options for Zoom. It's fairly self-explanitory, you can choose to zoom in or out, and on the x or y axis seperately. Play with it if you're not feeling very sure.

Opacity is how transparent an image is. 255 is completely opaque, or not transparent at all, 0 is completely transparent, or invisible.

Blending effects the colors of the picture, how it "blends" with the layers behind it. Normal will show the picture normally. If you're familiar with any graphics program like Photoshop, you're probably familiar with Addition and Subtraction blending modes.

The Addition blending mode works as follows: Given a foreground and background pixel, represented by the RGB vectors F=[r1,g1,b1] and B=[r2,g2,b2], the pixel obtained from the Addition blending mode is R=F+B=[r1+r2,g1+g2,b1+b2]. Or, in other words, if a pixel in the background is color 100, 100, 100 in RGB values, and a pixel that will overlap it in the picture is 25, 50, 135, then the resulting color in the image is 125, 150, 235.

The Subtract blending mode works as follows: Given a foreground and background pixel, we'll again represent each as an RGB vector F=[r1,g1,b1] and B=[r2,g22,b2]. The pixel obtained from the Subtract blending mode is R=B–F=[r2–r1,g2–g1,b2–b1]. If the result of the subtraction is less than 0, 0 is used instead. So, using the above example, the same pixel would be 75, 50, 0 in Subtract blending mode.
Move Picture event command

This is the meat of the event, how we move the picture up the screen. Let's look at the Move Picture dialog.
move_pic_dialog.png

Again, the first selection is the Number, which is the picture number we assigned earlier in the Show Picture command.

The second is Frames, and this is how many frames this operation should take. The maximum is 1000, the minimum 0.

Once again, the origin. It's probably best to keep this the same as for the Show Picture, just to make it easier on yourself.

The X and Y coordinates are where you want to move the picture to. In the case of the above event command, we're moving it to 0, -610.

Move Picture is a bit of a misnomer, it should be Manipulate Picture, since we can choose to Zoom, change the Opacity, or change the Blending mode without moving the picture at all (to do so, just make the move-to XY coordinates the same as the original XY coordinates). These work the same as the those in the Show Picture dialog, except that they will be applied over the period of frames you specified. For example, if you put 100 frames in the Frames text box, and an 100 in the Opacity box, then the picture will fade to an opacity of 100 over the period of 100 frames. However, we're not doing anything fancy this time, just a straight move.
Wait event command

This is what it looks like, a wait. It tells the program not to do anything else in this event until x frames have passed. How long, in seconds, a frame is, depends on your individual game, map, and computer. Typically, a game will run at ~20 FPS (Frames Per Second), but don't bet the farm on it. We're waiting 1000 frames here (split into 999 and 1 because 999 is the maximum wait), because the above move picture is set to take 1000 frames.
Move Picture event command 2

This is essentially the same as the above Move Picture command, except we're moving it the rest of the way.
Wait event command 2

Now we're waiting 1180 frames, 1000 for the move event, and 180 before we move on to what happens next in the event. Ignore the Fade BGM command, it was a part of an expirement I forgot to take out. Without BGM playing, it does nothing, so it hurts nothing to have it in there.
Move Picture event command 3

Now we get to see why Move Picture should be titled Manipulate Picture. In this case we're "moving" the picture to the exact same coordinates as the last Move Picture, or, in other words, not moving it at all. Instead, we're changing the opacity of the picture to 0 over the course of 20 frames.
Erase Picture event command
 
Now we wait for the picture to fade out (the opacity to reach 0), which should happen in 20 frames. Then we erase both pictures. If you forget to erase a picture, it will hang around until you do!
Self Switch event command

Now for a short seque into switches. Switches, like their name implies, are like light switches. They're either on or off. All switches start out as off. There are regular switches, which are available to any event, including Common Events, in the game, and you can have up to 5000 of them. Then there are self switches, which are local to only that event. Each event has four: A, B, C, and D, and they different from event to event. Turning on the Self Switch A in this event will have no effect on the Self Switch A in any other event in the game.

Perhaps the most common use of switches is to change an event after something has happened. In this case, we're making sure the autorun event doesn't run again. To do so, we've created a second page to the event, with no event commands:
intro_event02.png

Notice how under Preconditions, I've checked the checkbox for Self Switch A is ON? Pages are evaluated from the highest numbered page to the lowest. The first page that is encountered in which all the preconditions are true is the one that executes, all others are ignored. So, when the player starts on this map, Self Switch A in this event is off, so the preconditions for Page 2 are false. However, page 1 has no preconditions, making it automatically true, so it evaluates until the of the event commands. Once it reaches the end of the event commands, Self Switch A is now true, since we turned it on. Thus page 2's preconditions are now true, and that page is evaluated instead. Since there are no event commands on page 2, that means nothing happens.

One last thing, we don't want the hero (or Arshes, rather, since we haven't touched the database yet) showing up during this intro. So we go to the database, click on the System tab, and remove all the heroes from the party.
th_noheroes.png

All right, we're all done with the introductory scrolling text. That wasn't so bad, was it? To see the intro in action, download the first draft of Chance.
http://www.rmxp.org/ccoa/Chance_draft1.zip :-s
 
...ặc...ặc...đây là cách làm intro theo kiểu "thủ công" mà hồi còn xài RM2k3 tui tự nghĩ ra đây mà! Không ngờ trên đời lại có người "cùng chí hướng" với mình. Giá mà bít là ai để làm "queng" thì hay quá!
 
nick chat là YH: Em_can_anh911 .cái intro này tui đâu biết làm đâu, ra YH cho tui hỏi 1 tí đi!
 
cách làm của tui cũng tưong7 tự như cách ở trên. Để tui chỉ các bạn nhưng nói trước là sau khi đọc xong bài này thì ko được cười à nghe (tại vì cái này đơn giản lắm sợ các bạn cười hì)
Đây là cách làm 1 đoạn Intro bằng các hình ghép lại chứ ko cần viết script để chạy file movie. Cách này tuy thô sơ nhưng bù lại bạn sẽ có 1 đoạn Intro theo ý mình do mình tự tạo chứ ko cần chôm của ai.
Đầu tiên là phải chuẩn bị một số picture sẵn khỏang 5, 6 tấm gì đó. Bạn có thể để tên mình trong hình trong vai một người sáng tác game cho oai cũng được
Tiếp theo là tạo 1 map mới. Trong map này tạo 1 event bất kì với Trigger la Paralell Process
Trong cái event này bạn sẽ cho nó play BGM và show picture là những hình đã chuẩn bị hồi nãy. Cái lệnh wait nó ko tính theo giây mà tính theo frame nên chịu khó canh vài lần sẽ ổn. Nhớ dùng lệnh erase picture để xóa hình nhe
Cuối cùng là chọn điểm xuất phát ngay trên map này và sau khi khởi động trò chơi, chỉ cần người chơi chọn Start là cái event này sẽ tự chạy, nó sẽ hiện lên những hình mà bạn đã sắp xếp vào và chơi bản nhạc bạn chọn trông như 1 đoạn Intro.
Một điều lưu ý là nhớ dùng lenh65 teleport ở cuối event để sau khi play Intro xong sẽ đua7 hẻo wa map khác, nếu ko nó sẽ chạy đi chạy lại hoài là khỏi chơi.
Cách làm chỉ có vậy thui. Chúc bạn thành công ::) ::)
 
cách làm của tui cũng tưong7 tự như cách ở trên. Để tui chỉ các bạn nhưng nói trước là sau khi đọc xong bài này thì ko được cười à nghe (tại vì cái này đơn giản lắm sợ các bạn cười hì)
Đây là cách làm 1 đoạn Intro bằng các hình ghép lại chứ ko cần viết script để chạy file movie. Cách này tuy thô sơ nhưng bù lại bạn sẽ có 1 đoạn Intro theo ý mình do mình tự tạo chứ ko cần chôm của ai.
Đầu tiên là phải chuẩn bị một số picture sẵn khỏang 5, 6 tấm gì đó. Bạn có thể để tên mình trong hình trong vai một người sáng tác game cho oai cũng được
Tiếp theo là tạo 1 map mới. Trong map này tạo 1 event bất kì với Trigger la Paralell Process
Trong cái event này bạn sẽ cho nó play BGM và show picture là những hình đã chuẩn bị hồi nãy. Cái lệnh wait nó ko tính theo giây mà tính theo frame nên chịu khó canh vài lần sẽ ổn. Nhớ dùng lệnh erase picture để xóa hình nhe
Cuối cùng là chọn điểm xuất phát ngay trên map này và sau khi khởi động trò chơi, chỉ cần người chơi chọn Start là cái event này sẽ tự chạy, nó sẽ hiện lên những hình mà bạn đã sắp xếp vào và chơi bản nhạc bạn chọn trông như 1 đoạn Intro.
Một điều lưu ý là nhớ dùng lenh65 teleport ở cuối event để sau khi play Intro xong sẽ đua7 hẻo wa map khác, nếu ko nó sẽ chạy đi chạy lại hoài là khỏi chơi.
Cách làm chỉ có vậy thui. Chúc bạn thành công ::) ::)

AI GIẤU CÁI CHỮ KÍ CỦA TUI THÌ TRẢ LẠI ĐI NGHEN. KHÔNG GIỠN ĐÂU À! X(
 
ko phải tui spam bài đâu nghe. Tự dưng nó báo lỗi nên tui mới gửi lại, ko ngờ lại ra như vậy. Sorry! Sory!
 
Cái intro kiểu đó là kiểu ai cũng làm rùi còn j, có j lạ đâu ? Dùng lệnh và event trong 1 map khởi đầu trống không, cho character sprite cũng trốn ko nốt... thế thui mừ ^^
 
Bạn Dẩpladin gì đó ơi ...
Nếu nói làm như bạn thì sẽ sai mất
Thứ 1 : chạy không được đẹp cho lắm
thứ 2 : Nhân vật chính ích nhất bạn phải cho ở ẩn ngay từ đầu để tránh người chơi game không thấy ..nếu làm như vậy khi chuyển Map , Mình chơi Nhân vật chính tàng hình àhhhh .....Bó tay

tốt nhất kiếm cái Sciprt đí ...hay hơn là làm như vậy ,,,
 
vậy có ai có script để chạy video không? share với mình với! đang cần lắm nè! chán quá! ức chế!
 
To GameofVN:Tui chỉ nói cách làm Intro giống với cách làm mà Tìnhyêu36kế giới thiệu bằng chữ Anh thui chứ đâu có gì
AI GIẤU CÁI CHỮ KÍ CỦA TUI THÌ TRẢ LẠI ĐI NGHE.KO GIỠN À! X(
 
To ZaiZai 88:
Thứ nhất, Đúng là ko được đẹp lắm nhưng nó là "made in tui" thì vẫn thích hơn là chôm movie của người ta
Thứ hai, ông chưa có thử đã nói bừa rùi. Ko cần ẩn nhân vật chính cũng ko sao cả.Tui đã làm rồi, chẳng có ai thấy nhân vật chính đâu, vì vậy ko phải lo vụ tàng hình khi chuyển map

--------------------------------
AI GIẤU CÁI CHỮ KÍ CỦA TUI THÌ TRẢ LẠI ĐI NGHE.KO GIỠN À! X(
 
To ZaiZai 88:
_Thứ nhất, Đúng là ko được đẹp lắm nhưng nó là "made in tui" thì vẫn thích hơn là chôm movie của người ta
_Thứ hai, ông chưa có thử đã nói bừa rùi. Ko cần ẩn nhân vật chính cũng ko sao cả.Tui đã làm rồi, chẳng có ai thấy nhân vật chính đâu, vì vậy ko phải lo vụ tàng hình khi chuyển map
_Thứ ba,...tên tui đẹp vậy sao ông nỡ lòng...

--------------------------------
AI GIẤU CÁI CHỮ KÍ CỦA TUI THÌ TRẢ LẠI ĐI NGHE.KO GIỠN À! X(
 
To Tìnhyêu36kế :
Mình đã thử mấy cái script chạy movie nhưng chẳng có cái nào xài được cả. Chắc RMXP ko "hạp" với movie rùi.
Nhưng nếu bạn tìm được cái nào ok thì share cho mình với nhé

--------------------------------
AI GIẤU CÁI CHỮ KÍ CỦA TUI THÌ TRẢ LẠI ĐI NGHEN.KO GIỠN ĐÂU À! (:-O)
 
à hay, mình tìm được rồi, cái này của VoDich post, chôm từ rmxp.net qua! có điều các file movie phải có độ phân giải khá cao mới chạy đựơc (640x480) hic, có ai biết cách làm cho movie nằm ở giữa màn hình không ạ!
 
Ông DarkPaladin ...ông mới chưa thử đó .,,,Tui lằm cái kiểu đó muôn mòn muôn Cai RPG Xp rùi đó ..Ông không thấy chớp một cái thằng nhân vật chính nó chỉ có bị tấm hình che đi thui , chứ nó còn đó đó ..
Ông chớp nhanh thì may ra không thấy .,... chớp chậm quá thì làm không tránh chảng không thấy thằng nhân vẬT
 
Ông DarkPaladin ...ông mới chưa thử đó .,,,Tui lằm cái kiểu đó muôn mòn muôn Cai RPG Xp rùi đó ..Ông không thấy chớp một cái thằng nhân vật chính nó chỉ có bị tấm hình che đi thui , chứ nó còn đó đó ..
Ông chớp nhanh thì may ra không thấy .,... chớp chậm quá thì làm không tránh chảng không thấy thằng nhân vẬT CHÍNH

Thôi thôi nói chung dẹp cách làm đó đi cho caubebutchi nhờ
 
Thế trong mục Trigger của cái event đó ông chon Autorun hay ParalellProcess? Nếu chon Autorun thì làm ko được là phải rồi. Còn nếu chọn Paralell rồi mà ko được thì tui cũng pó tay với ông luôn

----------------------------------
AI GIẤU CÁI CHỮ KÍ CỦA TUI THÌ TRẢ LẠI ĐI NGHE! KO GIỠN ĐÂU À!!!
 
Tìnhyêu36kế nói:
vậy có ai có script để chạy video không? share với mình với! đang cần lắm nè! chán quá! ức chế!
Nhưng cái em cần là 1 cái Logo hay là 1 đoạn phim , nếu phim thì ko hoàn hảo đc đâu , còn 1 cái Logo thì dễ quá mức
 
vậy làm logo như thế nào hả anh Dương (giống như cái fs của anh hiện ra cái hân hạnh giới thiệu với cái final sword trước khi phang tiếp í hả). Chỉ em cách làm luôn đi
 
Back
Top