TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
Books & Courses
FORUMS
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Chat
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Hover over button Text
Pages:
1
Hover over button Text
Taden Games
Posts: 15
July 17, 2014, 01:34:50 am
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
July 17, 2014, 02:01:57 am
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: 2716
July 17, 2014, 02:07:44 am
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
July 17, 2014, 02:28:33 am
Thats for your responce
Trying to work it out still anyway you could take a screen shot of the code
Thanks
LIBERADO
Posts: 2716
July 17, 2014, 02:34:43 am
Quote from: Taden Games on July 17, 2014, 02:28:33 am
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
July 17, 2014, 02:51:11 am
THANK YOU SOO MUCH
Taden Games
Posts: 15
July 22, 2014, 12:31:27 am
ok i dont know what im doing wrong but these comands dont seem to be working
Taden Games
Posts: 15
July 22, 2014, 01:05:50 am
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: 2716
July 22, 2014, 07:06:17 am
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
July 22, 2014, 04:29:02 pm
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: 2716
July 22, 2014, 07:38:24 pm
Try this solution:
http://community.stencyl.com/index.php/topic,31222.msg178816.html#msg178816
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.
Pages:
1