attaching an image with a body?

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
masterblade
Prole
Posts: 5
Joined: Fri Apr 09, 2010 10:51 pm

attaching an image with a body?

Post by masterblade »

Hi guys!

Is there a way to attaching an image to a body or a shape?
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: attaching an image with a body?

Post by bartbes »

Using your own tables/objects/whatever-representation-you-use.
Internally love.graphics and love.physics are not connected. (on purpose)
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: attaching an image with a body?

Post by Robin »

Drawing an image for a body goes something like this:

Code: Select all

love.graphics.draw(theimage, thebody:getX(), thebody:getY(), thebody:getAngle())
Help us help you: attach a .love.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 3 guests