PT
Developer Forums
Register
Login
Code Snippets
->
[DBP] - quick function to activate a sprite to be an icon
<
1
>
D
DARKBASIC PRO 3d WORLD EDITOR
Joined:
2nd May 2012
Location:
Posted:
20th Apr 2015 20:10
[/code]function Icon_Read(spr,x1,y1)
if mousex()>x1 and mousex()<x1+sprite width(spr)
if mousey()>y1 and mousey()<y1+sprite height(spr)
value=mouseclick()
set sprite diffuse spr,20,20,250
endif
endif
endfunction value[code]