Difference between revisions of "MessageBox Tutorial"
Jump to navigation
Jump to search
m
→Where to place MessageBox and GetButtonPressed
imported>Haama |
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 [[BlockTypes|block]] to display it. However, [[GetButtonPressed]] needs to be in a [[BlockTypes|block]] 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=== |