Loading bar stencyl3/10/2024 by a loading scene I mean something like a small actor running or dancing at the bottom, or a loading bar showing the progress or something like that in the mario games with a picture scrolling along the screen etc. I know I can do this simply by prohibiting the player movement and show some text to indicate loading, but i guess that would look reli bad. īut I don't have any idea how to make it, and also how to know when the loading is done. So I think the problem can be solved by processing all these before the game actually starts. But this takes a couple of seconds to do that and it lags like hell, and sometimes the game even crashes if i try to move my player at this few seconds. So i have created a behaviour to check if the position of the actor is close to the player's initial position, and if not they'll be killed and stored in a list and created only when the player is near. Doesn't work on Flash or HTML5.For some of my scenes, there are lots of actors which need to be active. If you can use it with a newer SWF, please tell me how it works! NOTE: The first of these two blocks has been tested to the fullest of my ability, but I cannot confirm that it works perfectly. If you notice that it isn't playing in the correct position, or for the correct length of time, try using the other block. This block can be used just like any other sound block. Prints a list out to the console, item by item. The top left of the box it draws in is at the inputted x and y. This is a workaround of Stencyl's automatic Unicode-to-code-point conversion, which results in glyphs outside the ASCII range encoding safely, but incorrectly.ĭraws a list onto the screen, item by item. Returns the text with preserved Unicode characters. Useful for debugging purposes.Īdds a new line of text to the text attribute.Īdds a line of text to the end of the file. Replaces each of the line breaks in the text with \r. For example, Hello\rWorld! will result in: The inputted text will have line breaks added wherever there is a \r in the text. Splits the text into a list by putting each line of the file into a new item. If it has multiple lines in it, it may need to be processed with the following block. extras/sfx/jump1.ogg should both be put into the sound block as sfx/jump1įor future versions I plan to add the ability to manipulate files outside of the extras folder (perhaps outside of the game folder itself), but I have yet to determine how to implement this block-wise. extras/image.png can be put into into the save image block as image.png, or just image extras/preloader.swf can be put into into either swf block as preloader.swf, or just preloader extras/subfolder/test.txt should be put into into the text block as subfolder/test.txt extras/test.txt should be put into the text block as test.txt Any subfolders in the path (after extras) must be included. For the swf and save image blocks, it doesn't matter. ogg automatically, depending on the platform.) For the sound from file block, you must not use a file extension. For the text from file, save text, append line, and image from file blocks, you must use the correct file extension (e.g.txt. Use the blocks to get data from the files. Place any necessary files inside this folder.ĥ. Create a new folder and name it extras.Ĥ. Inside your game, press Debug > View > View Folder for this Game, then open up the highlighted folder.ģ. Download, install and enable the extension (link above).Ģ. It should now have successfully upgraded.ġ. DO NOT open any resources before closing.ĭ. If i click the play button the screen goes black for 1 full minute without any loading bar. Then i see the intro screen picture with the click here button. In the Extensions settings, disable the "External Data 3.3" extension and enable the "External Data" extension.Ĭ. The intro sreen is flashing for 1 sec then i see the loading bar but only for a half a sec. Note that it will not overwrite the 3.3 version, resulting in two versions of the extension in your folder.ī. If upgrading from the 3.3 version of the extension:ġ. Please note that these are no longer being maintained.) ( How to Install and Update an Extension) Some blocks may not work in older versions. (If you can test it on Mac, Linux, or iOS, please tell me how it works!)ĭesigned to work with Stencyl v3.4+. All except the SWF blocks work on Windows and Android, and it should be the same on everything else. png images (on Desktop or Mobile)Īll except the saving blocks work correctly on Flash should be the same with HTML5. It's gone quite well I even managed to add in a saving feature. Recently I've been working on an extension that's able to get files from the 'extras' folder, such as described in this topic.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |