Skip to content

Instantly share code, notes, and snippets.

@leafac
Created January 27, 2023 21:38
Show Gist options
  • Select an option

  • Save leafac/a472b182a522022b73c8d8f692a93d57 to your computer and use it in GitHub Desktop.

Select an option

Save leafac/a472b182a522022b73c8d8f692a93d57 to your computer and use it in GitHub Desktop.
// DVD Logo
colorspace = 'RGBA';
background = input_track(0);
overlay = 0;
gfx_blit(background, 0);
input_info(overlay, overlay_width, overlay_height);
velocity_x = velocity_x == 0 ? 7 : x < 0 || x > project_w - overlay_width ? -velocity_x : velocity_x;
velocity_y = velocity_y == 0 ? 13 : y < 0 || y > project_h - overlay_height ? -velocity_y : velocity_y;
x += velocity_x;
y += velocity_y;
gfx_blit(overlay, 0, x, y, overlay_width, overlay_height);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment