Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //------------------------------------------------//
- // CREATE EVENT //
- //------------------------------------------------//
- isRecording = false;
- //------------------------------------------------//
- // STEP EVENT //
- //------------------------------------------------//
- var _recordPressed = keyboard_check_pressed(ord("T"));
- if (_recordPressed)
- {
- if (!isRecording)
- {
- isRecording = true;
- gifImage = gif_open(global.CurrentWidth, global.CurrentHeight);
- }
- else
- {
- isRecording = false;
- var _gifPath = get_save_filename("Animated Gif|*.gif", "");
- if (_gifPath != "")
- {
- gif_save(gifImage, _gifPath);
- }
- }
- }
- if (isRecording)
- {
- gif_add_surface(gifImage, application_surface, 2);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement