安裝 Steam
登入
|
語言
簡體中文
日本語(日文)
한국어(韓文)
ไทย(泰文)
Български(保加利亞文)
Čeština(捷克文)
Dansk(丹麥文)
Deutsch(德文)
English(英文)
Español - España(西班牙文 - 西班牙)
Español - Latinoamérica(西班牙文 - 拉丁美洲)
Ελληνικά(希臘文)
Français(法文)
Italiano(義大利文)
Bahasa Indonesia(印尼語)
Magyar(匈牙利文)
Nederlands(荷蘭文)
Norsk(挪威文)
Polski(波蘭文)
Português(葡萄牙文 - 葡萄牙)
Português - Brasil(葡萄牙文 - 巴西)
Română(羅馬尼亞文)
Русский(俄文)
Suomi(芬蘭文)
Svenska(瑞典文)
Türkçe(土耳其文)
tiếng Việt(越南文)
Українська(烏克蘭文)
回報翻譯問題
In obj_fade_out's CREATE event put the following:
image_alpha = 0.05 //this is the start fade for going into the next room.
In obj_fade_out's STEP event put the following:
if (image_alpha is less than 1)//note: can't use less than or greater than symbols in this description, just place the correct symbol in the place of the words.
{ image_alpha += 0.05 //smaller value here increases fade time.
}
if (image_alpha is greater than or equal to 1))//note: can't use less than or greater than symbols in this description, just place the correct symbol in the place of the words.
{ instance_destroy()
}
In obj_fade_out's DESTROY event put the following:
{
room_goto(room_name) //or if you have a standard hierarchy of rooms, use room_goto_next()
}
Now when you want to fade out of a room just create this object in the centre like so:
instance_create(room_width/2, room_height/2, obj_fade_out)
Now on the room CREATE of the next room you'll have the following to fade in.
instance_create(room_width/2, room_height/2, obj_fade_in)
Now create an object called obj_fade_in, give it the same big black rectangle as a sprite.
Then do the following:
obj_fade_in's CREATE event:
image_alpha = 1 //make it nice and opaque
obj_fade_in's STEP event:
if (image_alpha is greater than 0))//note: can't use less than or greater than symbols in this description, just place the correct symbol in the place of the words.
{ image_alpha -= 0.05 //smaller value here increases fade in time.
}
if (image_alpha == 0)
{ instance_destroy()
}
That's pretty much it. You'll now have a basic fade in and out. Just remember to create an instance of obj_fade_out whenever you want to move to the next room, and an instance of obj_fade_in in the room CREATE of every room you want to fade in to.
This was via Slasher X's video description http://www.youtube.com/watch?v=9TmzNdGm2Q4 (ignore the video itself and read the video description if you're on Game Maker Studio) and it works a treat for me