I want to make little tooltips on this little interactive thing i'm making that is informative on historic events.
So, what I did was that I created a background image, added little areas that when your mouse hovers over them, draws a rectangle and is supposed to draw text over that rectangle. But that doesn't happen for some reason. oddly, I can draw another rectangle over that rectangle, but I can't draw text.
Can someone explain why this is the case and how to fix this?
How do you draw text on top of a rectangle that is already drawn?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 1
- Joined: Sun Apr 02, 2017 2:40 am
How do you draw text on top of a rectangle that is already drawn?
- Attachments
-
- oof.love
- (6.59 MiB) Downloaded 149 times
- Jasoco
- Inner party member
- Posts: 3726
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: How do you draw text on top of a rectangle that is already drawn?
First, you packaged the .love file wrong. You need to zip the contents, not the folder.
Second, you forgot to set the color of the text so it's drawing in the same color as the rectangle, as far as I can tell without actually having to unpackage it and package it correctly myself.
Second, you forgot to set the color of the text so it's drawing in the same color as the rectangle, as far as I can tell without actually having to unpackage it and package it correctly myself.
Re: How do you draw text on top of a rectangle that is already drawn?
Think you are rotating the text off the screen.
Just give it the x and y
Just give it the x and y
Code: Select all
love.graphics.draw(slide_1_caption, 928,145)
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 8 guests