Difference between revisions of "016A"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with '{{OpCode | ini = 016a=2,fade %2d% time %1d% | description = Fades the screen in or out. | p1 = 1 = fade in, 0 = fade out | p2 = time in ms | game …')
 
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 016a=2,fade %2d% time %1d%
+
| games      = {{Icon|t}}
| description = Fades the screen in or out.
+
| command    = DO_FADE
| p1          = 1 = fade in, 0 = fade out
+
| description = Fades the screen
| p2          = time in ms
+
| syntax1    = 016A: fade [''int1''] [''int2''] ms
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
| syntax2    = fade [''int1''] [''int2'']
 +
| p1t        = [''int2'']
 +
| p1d        = Duration in milliseconds
 +
| p2t        = [''int1'']
 +
| p2d        = Fade stage ([[#Fade stages|see below]])
 
}}
 
}}
  
This opcode fades the screen either in or out for the specified time.  
+
This opcode allows the screen to fade in and fade back out. The color of the fade can be set through opcode [[0169]]. The longer the time set to fade, the slower the screen will fade. As the screen fades in, game sounds will fade out, and vice versa. Use opcode [[043C]] to prevent game sounds from being affected. The game is unable to be paused as the screen fades.
  
== Sanny Builder example ==
+
== Fade stages ==
 +
{|class="wikitable center-col-1"
 +
!Stage ||[[SCM language III/VC definitions#FADE|Enum]] ||Notes
 +
|-
 +
|0 ||FADE_OUT ||Fade out of game into color
 +
|-
 +
|1 ||FADE_IN ||Fade out of color into game
 +
|}
  
<source lang="scm">016A: fade 0 time 0</source>
+
== Keywords ==
 +
do, fade
  
==Keywords==
+
== See also ==
fade
+
* {{Icon|t}} [[0169]], sets the fading color
 
+
* {{Icon|t}} [[016B]], checks if the screen is fading
{{N|SA|VC}}
 
[[Category:GTA_3]]
 

Latest revision as of 00:09, 20 November 2016

GTA III Vice City San Andreas DO_FADE


Description
Fades the screen
Syntax
016A: fade [int1] [int2] ms
fade [int1] [int2]
Parameter
[int2]
Duration in milliseconds
[int1]
Fade stage (see below)

This opcode allows the screen to fade in and fade back out. The color of the fade can be set through opcode 0169. The longer the time set to fade, the slower the screen will fade. As the screen fades in, game sounds will fade out, and vice versa. Use opcode 043C to prevent game sounds from being affected. The game is unable to be paused as the screen fades.

Fade stages

Stage Enum Notes
0 FADE_OUT Fade out of game into color
1 FADE_IN Fade out of color into game

Keywords

do, fade

See also

  • GTA III Vice City San Andreas 0169, sets the fading color
  • GTA III Vice City San Andreas 016B, checks if the screen is fading