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.

Newcomers DBPro Corner / I want to know how to click things.. (DBC)

Author
Message
ADGamer
19
Years of Service
User Offline
Joined: 25th Sep 2004
Location:
Posted: 10th Apr 2005 00:41
How do you click on things in DBC?
I think it has something to do with the mousebutton code..

I want to click on something in a given location, then do something..

example: load bitmap, play music, print "etc.."

Mantis-Games (game in progress)
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 10th Apr 2005 01:03
try seeing if you can make this work.

this line:
Quote: "
if mousex()>360 and mousex()<381 and mousey()>84 and mousey()<105 and mouseclick()=1
"

looks to see if mousex is beteew 360 and 381 on the (left, right) and mousey 84 to 105 up down.


hope you know how to do your sprites if not let us know and we'll see if we can help you.

What it does is paste sprite 1 and sprite 2 on the screen, then when you click on that part of screen it puts the other sprite 4 or 3 on the screen for as long as you press a mouse button.

Should work with the box command instead of a sprite as its is only looking to see where the mouse is.

In Space No One can Hear You Scream! (When your comm Line is cut?)
ADGamer
19
Years of Service
User Offline
Joined: 25th Sep 2004
Location:
Posted: 10th Apr 2005 06:24
I hope you understand, that I STINK at following people's directions here..

it's too hard..
could you just give me the source?
I'm better at finding things out myself..

Mantis-Games (game in progress)
Skeletor
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: florida
Posted: 10th Apr 2005 06:34 Edited at: 10th Apr 2005 06:36
Here is the same source code from your other thread, but now the button is clickable.




http://www.angelfire.com/games5/db_games/
Killonyas Slayer
19
Years of Service
User Offline
Joined: 13th Apr 2005
Location: Mozerok,Eartreg
Posted: 13th Apr 2005 14:14
I'm confused, can somebody explain sprites to me?

Login to post a reply

Server time is: 2024-09-23 17:33:28
Your offset time is: 2024-09-23 17:33:28