|
Post by IsmAvatar on May 21, 2004 22:19:59 GMT -5
This is very useful for an in-game menu, dialogue box, etc. Basically, everything that you saw, is frozen in place. It becomes the background (if their depth is greater than that of what you are about to use). Then use this background and pretty much just restart from there. You have all the time in the world to do whatever you want. Make a menu, show the inventory, whatever. If there's something you didn't want frozen, just unfreeze it with scr_dontfreeze. As long as when you're done with it, you remember to unfreeze everything. You can also have some pretty cool effects if you play around with depths, and objects that don't freeze. userweb.nni.com/cmagicj/pause.gml (like 3 kb, lol) Download, and import as scripts. Then with the (2) new scripts, read the comments in each. If you haven't a clue what it is, just download it and give it a try. It's very small filesize. For some browsers, the above link opens in a text editor. In that case, right-click and save target as. I'm still working out how to have a draw event. Currently, objects with draw events do not have their draw event executed, but instead just draw their sprite. Credit absolutely necessary. Comments, constructive critisisms, problems, errors, desires, improvements, and backstabbers welcome.
|
|