Fandom

Game Maker

Backgrounds

281pages on
this wiki
Add New Page
Talk0 Share

Set a room background Edit

room_set_background(room_index,bg_slot,is_visible,is_foreground,bg_index,x_pos,y_pos,htiled,vtiled,hspeed,vspeed,bg_alpha);
  • bg_slot - 0...7 (see below)
  • these are true/false: is_visible, is_foreground, htiled, vtiled.
  • alpha - can be 1=opaque down to 0=transparent

Switch a room background Edit

background_index[n]=<background_index>;

Adjust background (n=0/1/.../7) Edit

background_

  • x[n], y[n] - background n's position within the current room
  • width[n], height[n] - get parameters of a background (read-only)
  • vtiled[n], htiled[n]; vspeed[n], hspeed[n] - set tiling to true/false; set the vertical/horizontal scroll speed
  • colour - set the background color in this room for empty spaces (where no background image exists)
  • xscale[n], yscale[n] - adjust the scale of the background

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.