Difference between revisions of "AGIWiki/shake.screen"

Jump to navigation Jump to search
m
Text replacement - "<source lang=" to "<syntaxhighlight lang="
m
m (Text replacement - "<source lang=" to "<syntaxhighlight lang=")
 
(3 intermediate revisions by 2 users not shown)
Line 15: Line 15:
'''Do not''' use a value of '''0''', as this causes the screen to shake indefinitely, and never returns control back to the interpreter.  
'''Do not''' use a value of '''0''', as this causes the screen to shake indefinitely, and never returns control back to the interpreter.  


== AGIPAL ==
=== AGIPAL ===


'''Note:''' although shaking the screen 100 or more times is not recommended (because the screen will shake for a long time), it should be noted that the <code>shake.screen</code> command is altered if you are using [[AGIWiki/AGIPAL|AGIPAL]] so that any value between 100 and 109 changes the game's palette instead of shaking the screen.
'''Note:''' although shaking the screen 100 or more times is not recommended (because the screen will shake for a long time), it should be noted that the <code>shake.screen</code> command is altered if you are using [[AGIWiki/AGIPAL|AGIPAL]] so that any value between 100 and 109 changes the game's palette instead of shaking the screen.
Line 32: Line 32:
The following code will shake the screen five times whenever the player enters this room:
The following code will shake the screen five times whenever the player enters this room:


<syntax type = "C++">
<syntaxhighlight lang="cpp">
   #include "defines.txt"
   #include "defines.txt"


Line 46: Line 46:
       shake.screen(5);
       shake.screen(5);
   }
   }
</syntax>
</syntaxhighlight>


== Technical Information ==
== Technical Information ==
TrustedUser
2,147

edits

Navigation menu