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 / Linking Images

Author
Message
Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 4th Aug 2006 21:48
Okay I know how to make them clickable but, how do I link them to a certain sub routine?

Thanks for Your Help

Jrock
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Riven
Posted: 5th Aug 2006 01:28 Edited at: 5th Aug 2006 01:28
I usually use a variable, for example...



erm

Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 5th Aug 2006 16:25
But then don't I have to put end? Because without it it would show a sub routine. But then when I put end, it ends the program.

Jrock
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Riven
Posted: 5th Aug 2006 17:31
Code please.

Jrock is pronouned Jay-Rock
flock
18
Years of Service
User Offline
Joined: 10th Mar 2006
Location: Earth
Posted: 5th Aug 2006 19:19
What? You think you have to have end at the end of every line that calls on a subroutine? Or at the end of the subroutine itself? You can just tell Jrock's code to go to the sub (like it does) then make the sub either have a do loop or a return command. Use end when the player clicks on the "quit" button.

a.k.a. "flockhound"
Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 5th Aug 2006 21:59
When I click on the image it doesn't do anything.

Nameless
20
Years of Service
User Offline
Joined: 11th Apr 2004
Location: U.S.A.
Posted: 5th Aug 2006 22:42 Edited at: 5th Aug 2006 22:43
You have to check if the mouse is over the image and if the player has clicked. Like this:




Hope that helps.
Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 6th Aug 2006 04:42 Edited at: 6th Aug 2006 05:17
How do I Get those coordinates, using Paint.
That Really Helped Nameless!

Shark
18
Years of Service
User Offline
Joined: 7th May 2006
Location: The world
Posted: 6th Aug 2006 05:54 Edited at: 6th Aug 2006 06:02
Here:

Just move the mouse over the both corners of the image.
Like so:


My computer specs:1.4 ghz P4,Savage 2000.
(Formerly FPSC PHREAK)

Attachments

Login to view attachments
Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 6th Aug 2006 15:53 Edited at: 6th Aug 2006 16:10
It says SYNTAX ERROR. UNRECONISED PAREMETER. and highlights
mousex()=
mousey()=
what do I do?
Sorry for asking so many questions!

NeX the Fairly Fast Ferret
19
Years of Service
User Offline
Joined: 10th Apr 2005
Location: The Fifth Plane of Oblivion
Posted: 6th Aug 2006 17:25 Edited at: 6th Aug 2006 17:25

Should actually be



Since the other one was scaring you guys so much...

Login to post a reply

Server time is: 2024-09-25 05:28:44
Your offset time is: 2024-09-25 05:28:44