Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //this is the code used in `update.gml`:
- col_time = 0
- with obj_stage_article {
- if (get_gameplay_time() > 140) {
- col_time = get_gameplay_time()
- if col_time % 380 = 0 {
- swapped = true;
- }
- if col_time % 400 = 0 {
- swap += 1;
- not_white = true;
- if (swap == 5 or swap == 0) {
- swap = 1;
- }
- }
- if col_time % 420 = 0 {
- swapped = false;
- col_time = 0;
- }
- }
- }
- //and this in `article1_draw.gml`:
- var pan = 0;
- if swapped == true {
- timer++;
- pan = timer*100
- draw_triangle_colour(get_marker_x(6), get_marker_y(6)+pan, get_marker_x(7), get_marker_y(7)+pan, get_marker_x(8), get_marker_y(8)+pan, colorf, colorf, colorf, false);
- draw_triangle_colour(get_marker_x(6), get_marker_y(6)+pan, get_marker_x(9), get_marker_y(9)+pan, get_marker_x(10), get_marker_y(10)+pan, colorf, colorf, colorf, false);
- } else {
- timer = 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment