Hover over button Text

Taden Games

  • Posts: 15
Ok here my simple question

How do you make it that if you hold your mouse over a button it show text without clicking in

For example if somebody doesnt know what a button does you can hover over it then it show a text showing what it is


This is for a flash Game on desktop

sdieters

  • Posts: 2068
when the mouse enters self,
set ShowText to treu

when mouse exits self
set ShowText to false

when drawing,
if Showtext << means the same as "if ShowText is true"
~draw "YourTekst" at (x and y)

Good luck
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p

LIBERADO

  • *
  • Posts: 2704
Also you can use this block:

User Input > Keyboard & Mouse > mouse [is down on/was pressed on/was released on/is over] [actor]

Example:

when drawing
  if mouse is over self
    draw text [
your text] at (x:  y:)

« Last Edit: July 17, 2014, 02:37:35 am by LIBERADO »
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

Taden Games

  • Posts: 15
Thats for your responce

Trying to work it out still anyway you could take a screen shot of the code

Thanks

LIBERADO

  • *
  • Posts: 2704
Trying to work it out still anyway you could take a screen shot of the code
See this:
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

Taden Games

  • Posts: 15
THANK YOU SOO MUCH

Taden Games

  • Posts: 15
ok i dont know what im doing wrong but these comands dont seem to be working

Taden Games

  • Posts: 15
Ok worked out how to get it to draw on screen but when i implement where i want the text to draw it draws miles away from where i want it to... To get where i want it to draw im putting in the X and Y of where the mouse is sitting in which is where i want to draw the Text.. So what am i doing is there a easier way to get the position

LIBERADO

  • *
  • Posts: 2704
Add this block:
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

Taden Games

  • Posts: 15
OK great so thats now working... Lol but another issue as a raised

The Words are drawing behind the Image/ Button  now

I have moved the position of the Button to Front and Back and tested both but the words are still showing up behind the button image.. Tryed diffrent Font along with diffrent postition.. Im now not sure if i need a code to make this work right

LIBERADO

  • *
  • Posts: 2704
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.