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 / Two functions....

Author
Message
Vulcan Omega
21
Years of Service
User Offline
Joined: 17th Dec 2002
Location: United Kingdom
Posted: 1st May 2003 19:27 Edited at: 1st May 2003 19:31
Hello everyone, how are ya all doing ?

I would like to show you two of my functions and how to use them.

The first deletes all the sprites currently on the screen:




To use this function place the "delete_all_sprites()" before the loop.

delete_all_sprites(x,5)

This then will remove the total sprites on the screen.
The next function will check for a left mouse click on a sprite on the screen. It will then play a sound when the sprite has been clicked.



To use this function place "mouse_over()" within your loop.

mouse_over(2,1)

This will check for the mouse over the sprite and a left mouseclick of the sprite number "2".

I hope you find these functions useful and if you use them please give me credit where appropiate to James Crockford.
Comments welcome.

Vulcan Omega is closer than you think !
http://www.vulcan-omega.co.uk/

Login to post a reply

Server time is: 2024-05-04 04:33:43
Your offset time is: 2024-05-04 04:33:43