Search found 97 matches

by verilog
Tue Aug 14, 2012 6:42 am
Forum: Support and Development
Topic: Unresponsive console on windows
Replies: 11
Views: 9596

Re: Unresponsive console on windows

Hi!
Are you including a conf.lua file inside your project? If not, make sure you include a file named "conf.lua" with the following configuration:

Code: Select all

function love.conf(t)
  t.console = true
end
That should enable the console :)
by verilog
Thu Aug 09, 2012 9:06 pm
Forum: Support and Development
Topic: Camera and player movement
Replies: 5
Views: 2229

Re: Camera and player movement

That will definitely do, thank you for your help Omar and Kikito! :) I appreciate it.
by verilog
Sun Aug 05, 2012 11:54 pm
Forum: Support and Development
Topic: Camera and player movement
Replies: 5
Views: 2229

Re: Camera and player movement

Hey Omar, thanks for your reply! So, the camera must be able to scroll everything including the player, right? That means that the player's position can be changed by the user or the camera. I'm currently having trouble with this, as moving both the player and the camera causes some erratic behavior...
by verilog
Sun Aug 05, 2012 3:40 am
Forum: Support and Development
Topic: Camera and player movement
Replies: 5
Views: 2229

Camera and player movement

Hey guys! I've been working on my platform engine for some time now, I'm slowly but steadily making progress. Anyway, let’s get to the point. I've been working on my camera system the last couple of days, so far I've a first draft of the camera code and it is at least functional, however, I've stumb...
by verilog
Thu Jul 05, 2012 4:05 am
Forum: Support and Development
Topic: How can I make this walking animation work?
Replies: 3
Views: 2892

Re: How can I make this walking animation work?

Hey, man! Consider using AnAL , also, I'd suggest using the same image for both directions, left and right, and flipping along the X axis according to a “flip” variable. Consider the draw mnemonic (If you use AnAL, you'll pass the same parameters to the draw() function): love.graphics.draw( drawable...
by verilog
Fri May 25, 2012 8:22 am
Forum: Support and Development
Topic: Need help with method variables
Replies: 2
Views: 1034

Re: Need help with method variables

There appears to be some mixing of instance and singleton OOP going on in your camera class. It's hard to follow, but my best guess is that you're calling something from game.lua in the form "camera:foo()", which is going into the singleton or class-static methods, and then one of those m...
by verilog
Thu May 24, 2012 9:27 pm
Forum: Support and Development
Topic: Need help with method variables
Replies: 2
Views: 1034

Need help with method variables

Hello guys! I'm a little bit stuck with an error I'm getting with love, hopefully someone can tell me what I'm missing here: Below you'll see a very basic camera system I'm working on, I'm using SECS. In the camera.lua file you'll see my init function: function camera:init() self.x = 0 self.y = 0 se...
by verilog
Wed May 16, 2012 8:49 am
Forum: Support and Development
Topic: Need some help with OOP and clean coding
Replies: 6
Views: 2090

Re: Need some help with OOP and clean coding

Hello! I'd like to ask something somewhat related to SudoCode's original questions. This has been bugging me for sometime now, and I can't seem to find a clear answer so far. I suspect that your problems come from the fact that Player isn't really a middleclass class Suppose I have the following pie...
by verilog
Mon Feb 06, 2012 7:53 am
Forum: Support and Development
Topic: creating animations using transformations
Replies: 5
Views: 4768

Re: creating animations using transformations

You mean Quad , love.graphics.translate , and Shear ? Yes! That’s right, applying (convolute) a transformation matrix to a pixel’s position or set of positions. For the shear transformation something like this would do. You can actually apply a set of transformations by combining (multiplying) each...
by verilog
Mon Feb 06, 2012 5:01 am
Forum: Support and Development
Topic: creating animations using transformations
Replies: 5
Views: 4768

Re: creating animations using transformations

I think that kind of "dynamic" transformations (cropping, translation, skewing) would require pixel-level manipulations, something achievable maybe using ImageData. For a certain, fixed area in your image you would require to copy/get certain pixels, add an x/y offset, for example (a linea...