
-----------------------------------
cema_seven
Wed Jun 14, 2006 4:53 pm

How do i make pictures be clickable? PLZ HELP ME THIS IS URG
-----------------------------------
In turing i have to make an ISU and i forgot how to make pictures so that i can click the like a button. someone plz help me

-----------------------------------
TheOneTrueGod
Wed Jun 14, 2006 4:58 pm


-----------------------------------
you have to check the mouse's position, and if the button is held down and if its in an area inside the picture, then make something happen...

Research mousewhere (or Mouse.Where, they are effectively the same thing, but one is a part of the Mouse module, and one isn't...) Both are in the F10 help menu, or probably in the [Turing Walkthrough]

-----------------------------------
cema_seven
Wed Jun 14, 2006 4:59 pm


-----------------------------------
*** click them like a button ***

-----------------------------------
Clayton
Wed Jun 14, 2006 5:10 pm


-----------------------------------
well i dont know for sure, but i think you can do picture buttons with turing (probably not though), if you cant, just draw the picture over turings gui buttons (or make your own button class :D) and use that, other than that, go with TheOneTrueGods suggestion, look through the turing help menu that comes with turing to research picture buttons

-----------------------------------
cema_seven
Wed Jun 14, 2006 5:13 pm


-----------------------------------
can you please some how tell me an example code cause i tryed looking but i can't find anything and i dunno any codes

-----------------------------------
Clayton
Wed Jun 14, 2006 5:15 pm


-----------------------------------
look in the Turing Walkthrough at the Pic commands and the GUI commands, we are not going to do this for you, you have to do some research first and show us what youve attempted, then well help you out some more

-----------------------------------
BenLi
Thu Jun 15, 2006 8:52 pm


-----------------------------------

var mx,my,mb:int
loop if you need to continually check for mouse
     mousewhere (mx,my,mb)
     if mx > picturex and mx picturey and my 