Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///Deals with parallax backgrounds.
- for (var i=0; i<8; i++) {
- //If the background is not set, do not draw
- if (background_index[i] != -1) {
- //If the background is not a foreground, do not draw
- if (background_foreground[i] == false) {
- //If the background is higher than the height of the room
- if (background_height[i] < room_height)
- && (background_height[i] > view_hview[0])
- draw_background_tiled_horizontal_ext(background_index[i], view_xview[0]/(1.2+(0.2*i))+(background_x[i]+background_hspeed[i]), background_y[i]+(view_yview[0]*(room_height-background_height[i])/(room_height-view_hview[0])), 1, 1, 0, background_blend[i], background_alpha[i]);
- //Otherwise, draw normally
- else
- draw_background_tiled_horizontal_ext(background_index[i], view_xview[0]/(1.2+(0.2*i))+(background_x[i]+background_hspeed[i]), background_y[i], 1, 1, 0, background_blend[i], background_alpha[i]);
- }
- }
- }
- //Draw pit marker
- draw_background_ext(bgr_pit, 0, room_height-32, room_width/16, 1, 0, background_blend[0], 0.5);
Add Comment
Please, Sign In to add comment