scroll in map broken

Issue #45 closed
Benjamin Hoffmann created an issue

The scroll in map feature is not working

import "mod_say"
import "mod_proc"
import "mod_grproc"
import "mod_map"
import "mod_text"
import "mod_key"
import "mod_video"
import "mod_screen"
import "mod_draw"
import "mod_scroll"
import "mod_sound"

process int main()
private
    int back;
begin
    set_mode(800, 600);
    set_fps(60, 0);

    back = png_load("png/logo.png");

    scroll_start(0, 0, back, 0, 0, 15, file, graph);

    loop

        angle+=1000;
        size++;

        scroll[0].x0++;
        scroll[0].y0++;

        if(key(_esc))
            exit();
        end

        frame;
    end
end

In this sample, the scroll graph should rotate and grow up, but nothing happend.

Comments (1)

  1. Benjamin Hoffmann reporter

    Noob mistake :

    import "mod_say"
    import "mod_proc"
    import "mod_grproc"
    import "mod_map"
    import "mod_text"
    import "mod_key"
    import "mod_video"
    import "mod_screen"
    import "mod_draw"
    import "mod_scroll"
    import "mod_sound"
    
    process int main()
    private
        int back;
        int graphscroll;
    begin
        set_mode(800, 600);
        set_fps(60, 0);
    
        back = png_load("png/logo.png");
        graphscroll = map_new(400,600,32,0);
    
        scroll_start(0, 0, back, 0, 0, 15, file, graphscroll);
        graph = graphscroll;
        loop
    
            angle+=1000;
            size++;
    
            scroll[0].x0++;
            scroll[0].y0++;
    
            if(key(_esc))
                exit();
            end
    
            frame;
        end
    end
    
  2. Log in to comment