Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] - quick function to activate a sprite to be an icon

Author
Message
DARKBASIC PRO 3d WORLD EDITOR
11
Years of Service
User Offline
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]

- Infinity is Simplicity -

Login to post a reply

Server time is: 2024-04-23 16:13:29
Your offset time is: 2024-04-23 16:13:29