Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //scr_txt_read
- //read from text file with random number
- exedir=working_directory;
- puzzlefile=string(irandom_range(1,2)) + ".txt";
- puzzledir=string(exedir)+"\puzzle\"+string(puzzlefile);
- puzzleopen = file_text_open_read(puzzledir);
- //setting initial line for array_read
- vblock = 1
- hblock = 1
- //
- do
- {array_read[vblock]=file_text_read_real(puzzleopen)
- vblock +=1
- file_text_readln(puzzleopen);
- } until(file_text_eof(puzzleopen));
- file_text_close(puzzlefile);
- global.array_grid[hblock,vblock] = string_char_at(hblock,array_read[vblock])
- //obj_mouse step
- x=mouse_x
- y=mouse_y
- move_snap(16,16)
- if y<16 {depth = -5}
- else {depth = 0}
- //obj_mouse global left mouse pressed
- if y>=16 instance_create(x,y,obj_num_disp) else {}
Advertisement
Add Comment
Please, Sign In to add comment