Difference between revisions of "MessageBox Tutorial"
m
→Where to place MessageBox and GetButtonPressed
imported>Haama (→Basics: New section and split things up into sections) |
imported>Haama |
||
Line 28: | Line 28: | ||
===Where to place MessageBox and GetButtonPressed=== | ===Where to place MessageBox and GetButtonPressed=== | ||
[[MessageBox]] takes one frame to display, so you can use any | [[MessageBox]] takes one frame to display, so you can use any [[BlockType]] to display it. However, [[GetButtonPressed]] needs to be in a [[BlockType]]that continuously runs (i.e., [[GameMode]], [[MenuMode]], [[ScriptEffectUpdate]]) and needs to be on a script that is running every frame (i.e., an activator that is in a loaded cell, a quest running every .001 seconds, etc.), until the player's decision is caught. This is because it will take at least a few frames for the player to read the menu and make a decision (as well as some other peculiarities). | ||
===Keep 'em separated=== | ===Keep 'em separated=== |