How do I do mouse over text on sprites?

Get help using Construct 2

Post » Fri Jul 01, 2016 7:27 am

My weapon shop works like this.

Player hovers their mouse over the weapon

Text appears in a box that says the weapons stats, price, and more information.

Player clicks weapon to buy it.

How would I go about implementing this?

I know how to do the buying thing, just not the text showing up.
B
9
S
5
Posts: 40
Reputation: 919

Post » Fri Jul 01, 2016 8:17 am

Mouse is over Object
--- Set text.position to object.position (plus or minus whatever side you want it on)
--- Set text.text to "Whatever you want"
--- Set text to visible
ELSE
--- Set text to invisible


~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
80
S
34
G
40
Posts: 3,029
Reputation: 30,393

Post » Fri Jul 01, 2016 9:17 am

@soldjahboy I assume I can create a box effect by pinning a box and setting it to the size of the sprite?
B
9
S
5
Posts: 40
Reputation: 919

Post » Sat Jul 02, 2016 2:49 am

Yeah pin behaviour should also work too.

I usually do things the "old" way - I keep forgetting about Pin, lol.

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
80
S
34
G
40
Posts: 3,029
Reputation: 30,393


Return to How do I....?

Who is online

Users browsing this forum: Ryan Kocourek and 13 guests