Skip to content

int_wrap

Hyomoto edited this page Jun 24, 2021 · 4 revisions
Jump To Go Back Arguments

int_wrap( value, min, max )

Returns: int

Returns the given integer "wrapped" around min and max. This can be used to get overflow behavior f GML's integer type, but will properly wrap as long as min < max.

var _int = int_wrap( 16, 0, 16 );

show_debug_message( _int );

Arguments

Name Type Purpose
value undef No description
min undef No description
max undef No description
Clone this wiki locally