kingsushi001
Member
Hi everyone
So I'm trying to create a simple colour picker. I'm using surface_getpixel(surface_id, x, y) to get the pixel
colour in the hue strip. This is my code:
And this is my error:
As far as I know, I don't need to check for the existence of the application_surface.
Also, I'm not using any other surfaces, at all.
Any help would be appreciated
So I'm trying to create a simple colour picker. I'm using surface_getpixel(surface_id, x, y) to get the pixel
colour in the hue strip. This is my code:
Code:
col = surface_getpixel(application_surface,x,y);
Code:
___________________________________________
############################################################################################
ERROR in
action number 1
of Create Event
for object obj_hue_picker:
Trying to use non-existing surface.
at gml_Object_obj_hue_picker_Create_0 (line 3) - col = surface_getpixel(application_surface,x,y);
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Object_obj_hue_picker_Create_0 (line 3)
Also, I'm not using any other surfaces, at all.
Any help would be appreciated