Search found 191 matches

by Petunien
Fri Sep 07, 2012 2:02 pm
Forum: Support and Development
Topic: [Help] How to move object to mouse clicked loaction
Replies: 14
Views: 7930

Re: [Help] How to move object to mouse clicked loaction

I modified your game. Now its possible to select, deselect and move the image using the mouse. :) I hope you wanted that. :shock: For selecting, I needed a function to check if the mouse and the image collide. You can get an explanation here: https://love2d.org/wiki/BoundingBox.lua (In this case, a ...
by Petunien
Fri Sep 07, 2012 1:32 pm
Forum: Support and Development
Topic: [Help] How to move object to mouse clicked loaction
Replies: 14
Views: 7930

Re: [Help] How to move object to mouse clicked loaction

Sorry, I forgot to explain. It's my fault. The fourth argument is the orientation of the image (radians), if its set to 0 (default), it won't rotate the image. The fifth and sixth arguments are the scale factors (for x and y), so you can enlarge or reduce the scale of the image. And cause I'm bad at...
by Petunien
Fri Sep 07, 2012 12:20 pm
Forum: Support and Development
Topic: [Help] How to move object to mouse clicked loaction
Replies: 14
Views: 7930

Re: [Help] How to move object to mouse clicked loaction

Or draw the picture by its center:

Code: Select all

 love.graphics.draw(hamster, x, y, 0, 1, 1, 64, 64)
It depends on what you are wanting. The code above is perfect for rotating.
by Petunien
Sat Sep 01, 2012 11:06 am
Forum: Support and Development
Topic: How to draw always at specific point of image?
Replies: 1
Views: 946

How to draw always at specific point of image?

Hi, I'm pretty confused on a surely easy question. In the following picture, I want to draw something always at the red point. The green point is the center and the point where the image rotate. http://www.abload.de/img/qwertz7mrnn.png I can't add + 40px or whatever to x/y coordinate, because I want...
by Petunien
Thu Aug 30, 2012 9:15 pm
Forum: Games and Creations
Topic: Snayke - Out now! Version 1.1, soundtrack available
Replies: 196
Views: 135566

Re: Snayke

Darky wrote:
slime wrote:Vote for snayke on steam greenlight: http://steamcommunity.com/sharedfiles/f ... d=92914085
done !
Me too!

I wish you luck!
by Petunien
Thu Aug 30, 2012 8:22 am
Forum: Support and Development
Topic: auto update
Replies: 2
Views: 1534

Re: auto update

It's possible. I'm working on a system for my game. It basically compares its own version with the latest version and if the latest version is newer, it downloads a .zip with the updated files. Then it extract those, so you have a folder called "0.0.5" or so in the appdata. In the game, yo...
by Petunien
Fri Aug 24, 2012 6:46 am
Forum: Support and Development
Topic: How do i profile memory usage in love2d?
Replies: 3
Views: 4937

Re: How do i profile memory usage in love2d?

LÖVE does only use the memory of the Lua task?
It doesn't need more?
by Petunien
Thu Aug 23, 2012 5:53 pm
Forum: Games and Creations
Topic: Mini Tower Defense
Replies: 15
Views: 11087

Re: Mini Tower Defense

Nice!
If it were for a little screen mobile phone it would be more optimal. :)
by Petunien
Mon Aug 20, 2012 5:46 pm
Forum: Support and Development
Topic: A very simple camera lib
Replies: 36
Views: 14891

Re: A very simple camera lib

Thank you very much for your explanation. :)

I repeat my said, it's not that sure that my game will be released. ^^
But if so, you'll be mentioned in the credits.

Oh, in your last sentence, which action do you mean?
by Petunien
Mon Aug 20, 2012 5:41 pm
Forum: Support and Development
Topic: Share a Shader!
Replies: 328
Views: 542449

Re: Share a Shader!

Sorry for the late answer. Thank you for the explanation. :)

I'll try it if I get spare time. Thank you again.