Search found 44 matches

by worldaway
Fri Sep 09, 2011 2:03 am
Forum: General
Topic: do i have to switch between .love and .zip files every time?
Replies: 12
Views: 4570

do i have to switch between .love and .zip files every time?

(im a noob to this) This is the way i modify my code: I change the .love to .zip I open the .zip folder I open the main.lua with notepad++ I modify code/save I get out of the main.lua and .zip folder I rename the .zip folder to .love Now I run the program. Is this the best way to modify and run code...
by worldaway
Fri Sep 09, 2011 1:53 am
Forum: General
Topic: How do i load an image onto a player with physics?
Replies: 5
Views: 2098

Re: How do i load an image onto a player with physics?

You do still use love.graphics.newImage, just like the hampster ball tutorial. The only difference is, you have to draw it at the coordinates of the physics body. So the code would be like this: love.graphics.love.graphics.draw( hamster, objects.ball.body:getX(), objects.ball.body:getY() ) local b ...
by worldaway
Thu Sep 08, 2011 4:23 am
Forum: General
Topic: How do i load an image onto a player with physics?
Replies: 5
Views: 2098

Re: How do i load an image onto a player with physics?

You do still use love.graphics.newImage, just like the hampster ball tutorial. The only difference is, you have to draw it at the coordinates of the physics body. So the code would be like this: love.graphics.love.graphics.draw( hamster, objects.ball.body:getX(), objects.ball.body:getY() ) ohhhh ok...
by worldaway
Thu Sep 08, 2011 2:31 am
Forum: General
Topic: How do i load an image onto a player with physics?
Replies: 5
Views: 2098

How do i load an image onto a player with physics?

I followed the physics tutorial: http://love2d.org/wiki/Tutorial:Physics
and i want to change the red circle to a smiley face. the coding for physics is different than the hampser ball tutorial coding, so i can't do love.graphics.newImage! someone please tell me how to do this.

thanks.