M
Murr_
Guest
Okay so i was trying to do myself, but i keep getting into some problems. First i'm trying to make this: clouds in the atmosphere effect, from up above.
Fara & The Eye of Darkness - ZackBellGames
Hyper Light Drifter - HeartMachine
You see those clouds scrolling horizontally across the screen. This is the effect i want to achieve, using SURFACES. I already done some work already but although not much.
The problems with this, is that i only get a huge single rectangle part of the BG and not almost all of it. And also it does not loop continuously.
bg_overworld_cloud_map (256, 256);
Room Size: 940 x 680
Any suggestions or ideas?
Fara & The Eye of Darkness - ZackBellGames
Hyper Light Drifter - HeartMachine
You see those clouds scrolling horizontally across the screen. This is the effect i want to achieve, using SURFACES. I already done some work already but although not much.
Code:
///CREATE: Initialize the surface*************************************************************************
surf_overworld = surface_create(view_wview[0], view_hview[0]);
hspeed = 2;
scroll_num = 1;
Code:
///DRAW: Draw the surf_overworld**********************************************************************
scroll_num += hspeed
if (!surface_exists(surf_overworld)) {
surf_overworld = surface_create(room_width, room_height);
}
surface_set_target(surf_overworld);
draw_clear(c_black);
draw_background_general(bg_overworld_cloud_map, -254, 256, 256, 256, x, y, 4, 4, 0, c_black, c_black, c_black, c_black, 1);
surface_reset_target();
if (surface_exists(surf_overworld)) {
draw_surface_ext(surf_overworld, x, y, 1, 1, 0, c_white, 0.6);
}
bg_overworld_cloud_map (256, 256);
Room Size: 940 x 680
Any suggestions or ideas?