im trying to replace the bodies in love.physics with images in my game, but the images are horribly place, they are going 15 pixels (at most) into the bottom right corner. please help?
removed attachment
image is displayed at wrong location
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
image is displayed at wrong location
Last edited by Doctory on Mon Nov 09, 2015 4:42 pm, edited 1 time in total.
- Dr.Tyler O.
- Citizen
- Posts: 58
- Joined: Tue Jul 29, 2014 9:17 am
- Location: United States
Re: image is displayed at wrong location
It looks to me like you're experiencing an issue that I had when I first started using Love2D.
Take a look at this viewtopic.php?f=4&t=78764. That was the issue I had.
It turned out that the problem was that I was forgetting to adjust the origin offset of the drawn objects. (For your case I'm assuming it's somewhere around 15,15 because you stated that they were off about 15 pixels.)
https://love2d.org/wiki/love.graphics.draw
Take a look at this viewtopic.php?f=4&t=78764. That was the issue I had.
It turned out that the problem was that I was forgetting to adjust the origin offset of the drawn objects. (For your case I'm assuming it's somewhere around 15,15 because you stated that they were off about 15 pixels.)
https://love2d.org/wiki/love.graphics.draw
Any topic I have ever posted that I felt did not require a .love file, although they were requested, never required one so I would appreciate if you did not ask me to supply one unless you think that I am ignorant for not doing so.
Re: image is displayed at wrong location
alright this is much worse
Re: image is displayed at wrong location
fixed it nvm
- Dr.Tyler O.
- Citizen
- Posts: 58
- Joined: Tue Jul 29, 2014 9:17 am
- Location: United States
Re: image is displayed at wrong location
Was my post the answer or was it something else?Doctory wrote:fixed it nvm
Any topic I have ever posted that I felt did not require a .love file, although they were requested, never required one so I would appreciate if you did not ask me to supply one unless you think that I am ignorant for not doing so.
Re: image is displayed at wrong location
your post
Who is online
Users browsing this forum: Google [Bot] and 2 guests