image is displayed at wrong location

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Doctory
Party member
Posts: 441
Joined: Fri Dec 27, 2013 4:53 pm

image is displayed at wrong location

Post by Doctory »

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
Last edited by Doctory on Mon Nov 09, 2015 4:42 pm, edited 1 time in total.
User avatar
Dr.Tyler O.
Citizen
Posts: 58
Joined: Tue Jul 29, 2014 9:17 am
Location: United States

Re: image is displayed at wrong location

Post by Dr.Tyler O. »

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.)
Image
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.
User avatar
Doctory
Party member
Posts: 441
Joined: Fri Dec 27, 2013 4:53 pm

Re: image is displayed at wrong location

Post by Doctory »

alright this is much worse
Image
User avatar
Doctory
Party member
Posts: 441
Joined: Fri Dec 27, 2013 4:53 pm

Re: image is displayed at wrong location

Post by Doctory »

fixed it nvm
User avatar
Dr.Tyler O.
Citizen
Posts: 58
Joined: Tue Jul 29, 2014 9:17 am
Location: United States

Re: image is displayed at wrong location

Post by Dr.Tyler O. »

Doctory wrote:fixed it nvm
Was my post the answer or was it something else?
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.
User avatar
Doctory
Party member
Posts: 441
Joined: Fri Dec 27, 2013 4:53 pm

Re: image is displayed at wrong location

Post by Doctory »

your post
Post Reply

Who is online

Users browsing this forum: No registered users and 79 guests