Search found 74 matches

by surtic
Thu Oct 16, 2008 10:04 pm
Forum: Support and Development
Topic: Couple Suggestions
Replies: 20
Views: 16049

Re: Couple Suggestions

Oooops... :oops: I thought it was already removed (I remember reading about the *intention*...)

Anyway, I still think LÖVE should be a "safe" application. I still open .love files without thinking twice, at least for now...
by surtic
Thu Oct 16, 2008 10:00 pm
Forum: Support and Development
Topic: Request new feature for draw function. - flip sprite
Replies: 4
Views: 3503

Re: Request new feature for draw function. - flip sprite

I thought rotating around a non-centre point was done using image:setCenter() and then rotating.

Or is the question "why do we have to call setCenter() on the image (stateful) and we don't have a function for that (stateless)"?
by surtic
Thu Oct 16, 2008 9:35 pm
Forum: Support and Development
Topic: Suggestion: mousemoved() callback
Replies: 6
Views: 5995

Re: Suggestion: mousemoved() callback

Thank you very much! It solved the problem immediately...

Now I'm happy again :)
by surtic
Thu Oct 16, 2008 5:28 pm
Forum: Support and Development
Topic: Getting the movement like this.
Replies: 11
Views: 12050

Re: Getting the movement like this.

Thanks for that... much easier than my original conversion.

I've been using Lua for some time now (a few years) but have never explored the math library - initially I was using an integer-only version that was running on an embedded system, so the math library was simply not available.
by surtic
Thu Oct 16, 2008 5:25 pm
Forum: Support and Development
Topic: Couple Suggestions
Replies: 20
Views: 16049

Re: Couple Suggestions

I was responding more to cag, really. There's a problem here: on the one hand a file browser doesn't sounds like a feature consistent with the rest of the API. On the other hand, allowing developers to write such a feature means that there's some way to load/save files (even if has to be enabled in ...
by surtic
Wed Oct 15, 2008 7:13 pm
Forum: Support and Development
Topic: Couple Suggestions
Replies: 20
Views: 16049

Re: Couple Suggestions

I quite like the simplicity of clicking on a .love attachment and running it without wondering which files are going to be overwritten this time (or read and sent over the net using LuaSocket...) Of course, we have many programs that write to files and we don't expect them to ask "are you sure?...
by surtic
Wed Oct 15, 2008 7:01 pm
Forum: Support and Development
Topic: Suggestion: mousemoved() callback
Replies: 6
Views: 5995

Re: Suggestion: mousemoved() callback

Thanks for the suggestion. Unfortunately it doesn't help - the cursor is still outside the rectangle most of the time.

I guess for now I'll have to draw the cursor myself - not a big deal, but maybe something to think about for the next version of LÖVE.
by surtic
Tue Oct 14, 2008 8:52 pm
Forum: Support and Development
Topic: Suggestion: mousemoved() callback
Replies: 6
Views: 5995

Re: Suggestion: mousemoved() callback

I must have a slow computer (or graphics card)... didn't think that was the case, it was great when I bought it... I can certainly see a lag - if I grab the rectangle by the corner and then move it in that direction (the corner's direction) the mouse is outside the rectangle most of the time. In any...
by surtic
Tue Oct 14, 2008 8:09 pm
Forum: Support and Development
Topic: Suggestion: mousemoved() callback
Replies: 6
Views: 5995

Suggestion: mousemoved() callback

There seems to be a small problem with having to poll to find the position of the mouse. For example, if I want to drag something (see file attached), then the object doesn't move together with the mouse. My suggestion is to have a mousemoved(x, y) callback to allow the application to deal with this...
by surtic
Sun Oct 12, 2008 7:11 pm
Forum: Support and Development
Topic: Getting the movement like this.
Replies: 11
Views: 12050

Re: Getting the movement like this.

After you shoot, set a counter (number of seconds to wait), and subtract dt in each call of update(dt).
When the counter is zero (or less than zero) you know that the time has passed and you can allow another shot.