Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// @description
- var rec_pressed = keyboard_check_pressed(ord("H"))
- if (rec_pressed)
- {
- if (!recording)
- {
- recording = true
- var appw = surface_get_width(application_surface)
- var apph = surface_get_height(application_surface)
- gif = gif_open(appw, apph)
- }
- else
- {
- recording = false
- var path = get_save_filename("knife_life|*.gif", "" +
- string_format(current_day, 2, 0) + "-" + string_format(current_month, 2, 0) + "-" + string(current_year) + " " +
- string_format(current_hour, 2, 0) + "|" + string_format(current_minute, 2, 0) + "|" + string_format(current_second, 2, 0) + ".gif")
- //string(current_time) + ".gif")
- gif_save(gif, path)
- }
- }
- if (recording)
- {
- gif_add_surface(gif, application_surface, 2)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement