字幕列表 影片播放 由 AI 自動生成 列印所有字幕 列印翻譯字幕 列印英文字幕 Here's how to make a loading screen on Roblox. 下面是如何在Roblox上製作一個加載螢幕。 You'll need to start by designing your loading screen. 你需要從設計你的加載螢幕開始。 You can design your loading screen in any way you see fit. 你可以以任何你認為合適的方式設計你的加載螢幕。 However, it is important to name the objects 然而,重要的是要給對象命名 exactly as shown. 完全如圖所示。 The slightest misspelling can cause your code to break, 最輕微的拼寫錯誤都會導致你的代碼中斷。 so it is important to double-check. 所以仔細檢查是很重要的。 For the sake of time, 為了時間的緣故。 we are going to speed up the design of the user interface. 我們要加快用戶界面的設計。 Feel free to pause at any time. 在任何時候都可以隨意暫停。 It is important to make sure that 重要的是,要確保 the "ResetOnSpawn" property "ResetOnSpawn "屬性 for your screen UI is not ticked, 沒有勾選你的螢幕用戶界面的選項。 while the "IgnoreGuiInset" property should be ticked. 而 "IgnoreGuiInset "屬性應該被勾選。 The loading bar size should also be 裝載條的尺寸也應該是 set to (0,0), (1,0) 設置為(0,0),(1,0)。 so that it is hidden when a player first joins your game. 以便在玩家第一次加入你的遊戲時將其隱藏。 After you are satisfied with your design, 在你對你的設計感到滿意之後。 right-click on the screen UI object 右鍵點擊螢幕UI對象 and click "Insert Object," 並點擊 "插入對象"。 followed by "LocalScript." 後面是 "LocalScript"。 A local script will allow you to write code 一個在地腳本將允許你編寫代碼 to make sure that your loading screen will function. 以確保你的加載螢幕能夠發揮作用。 Double-click on your local script to start editing it. 雙擊你的在地腳本,開始編輯它。 Highlight everything inside 突出顯示裡面的所有內容 and delete it to start with a clean slate. 並刪除它,以便從一個乾淨的地方開始。 To keep this short, 為了簡短起見。 we are going to speed through the writing of the code, 我們要加快編寫代碼的速度。 and then we'll break down what each part does. 然後我們將分解每個部分的作用。 You can find the code 你可以找到該代碼 in the description below to follow along. 在下面的描述中,可以跟上。 The topmost section is 最上面的部分是 where it will store all your variables. 在這裡它將存儲你所有的變量。 Variables are simply there to help you access 變量只是為了幫助你訪問 their contents more easily later on. 他們的內容以後會更容易。 The next section is what will make your loading bar move. 下一節是使你的加載條移動的內容。 The function called ResizeBar 稱為ResizeBar的函數 will smoothly resize your loading screen 將順利地調整你的加載螢幕的大小 if you give it a number. 如果你給它一個數字。 Then we are simply turning off all of the Roblox GUIs, 那麼我們只是簡單地關閉了所有Roblox的GUI。 which include the chat, leaderboard, health bar, and more. 其中包括哈拉、排行榜、健康欄等。 This is done to make sure 這樣做是為了確保 that your loading screen looks cleaner. 你的加載螢幕看起來更乾淨。 Afterwards, the loading screen is enabled 之後,加載螢幕被啟用 and the loading bar moves for the first 10%. 和加載條移動的第一個10%。 Next, we need to make sure to wait 接下來,我們需要確保等待 for the player's avatar to load. 為玩家的頭像加載。 After their avatar loads, 在他們的頭像加載之後。 the loading bar will move to 40%. 裝載條將移動到40%。 The final step is to wait 最後一步是等待 for any images and other assets to load. 為任何影像和其他資產的加載。 This is done by using the ContentProvider service. 這是通過使用ContentProvider服務完成的。 Once this is done, 一旦這樣做了。 the loading bar will finish up at 100%. 加載條將在100%的位置結束。 Lastly, the player is notified that the game has loaded, 最後,玩家被通知遊戲已經加載。 and we will give them the default Roblox GUIs back. 而我們將把默認的Roblox圖形用戶界面還給他們。 The loading screen is then removed 然後,加載螢幕被刪除 so that the players can enjoy your game. 以便玩家能夠享受你的遊戲。 Finally, click "Play" to test out your loading screen. 最後,點擊 "播放 "來測試你的加載螢幕。
A2 初級 中文 螢幕 代碼 玩家 界面 用戶 對象 如何在Roblox上製作一個加載螢幕 (How To Make A Loading Screen On Roblox) 7 0 林宜悉 發佈於 2022 年 05 月 19 日 更多分享 分享 收藏 回報 影片單字