hmm...
dajesz w object objGround:
Create:
surf = surface_create(room_width,room_height)
xx = 0
yy = 0
xxx = 0
yyy = 0
Mouse Left Pressed:
xx = mouse_x
yy = mouse_y
Mouse Left:
xxx = mouse_x
yyy = mouse_x
Draw:
if mouse_check(mb_left)
{
surface_set_target(surf)
draw_line(xx,yy,xxx,yyy)
surface_reset_target()
}
draw_surface(surf,0,0)
Keyboard <P>:
mask_index = sprite_create_from_surface(surf,0,0,room_width,room_height,true,true,false,true,
0,0)
Dzięki dla Wezyra, bo mi powiedział jak zrobić sprita z surfa.