Difference between revisions of "AGIWiki/add.to.pic"

Jump to navigation Jump to search
27 bytes added ,  15:02, 25 October 2018
m
Text replacement - "<source lang=" to "<syntaxhighlight lang="
(→‎Example: Fix syntax highlighting)
m (Text replacement - "<source lang=" to "<syntaxhighlight lang=")
Line 62: Line 62:
The following example uses <code>add.to.pic</code> to draw cel 3 from loop 2 of view 15 at position (40, 120) with a priority of 9 and a margin of 0 ([[AGIWiki/Unconditional barrier|unconditional barrier]]).
The following example uses <code>add.to.pic</code> to draw cel 3 from loop 2 of view 15 at position (40, 120) with a priority of 9 and a margin of 0 ([[AGIWiki/Unconditional barrier|unconditional barrier]]).


<source lang="cpp">
<syntaxhighlight lang="cpp">
  load.view(15);
  load.view(15);
  add.to.pic(15, 2, 3, 40, 120, 9, 0);
  add.to.pic(15, 2, 3, 40, 120, 9, 0);
Line 69: Line 69:
The next example uses the [[AGIWiki/Indirect command|indirect command]] <code>add.to.pic.v</code> to accomplish the same thing:
The next example uses the [[AGIWiki/Indirect command|indirect command]] <code>add.to.pic.v</code> to accomplish the same thing:


<source lang="cpp">
<syntaxhighlight lang="cpp">
  load.view(15);
  load.view(15);


Line 85: Line 85:
Avoiding problems with script buffer and memory while restoring the original room without [[AGIWiki/new.room|new.room]]:
Avoiding problems with script buffer and memory while restoring the original room without [[AGIWiki/new.room|new.room]]:


<source lang="cpp">
<syntaxhighlight lang="cpp">
if (cutscene_block) {
if (cutscene_block) {
   set(f7);  
   set(f7);  
TrustedUser
2,147

edits

Navigation menu