Search found 153 matches

by The Burrito
Fri Dec 30, 2011 9:31 pm
Forum: Support and Development
Topic: Collision Problem
Replies: 10
Views: 2205

Re: Collision Problem

Your collision stuff looks fine, it's the drawing thats off. Try drawing the "enemy" like this: love.graphics.polygon("fill",objects.enemy.two.shape:getPoints()) That will show you exactly what the physics shape looks like. I think your draw code was carried over from your previous problem, which is...
by The Burrito
Thu Dec 29, 2011 12:05 am
Forum: Support and Development
Topic: Turning a body around a body [Solved]
Replies: 8
Views: 1675

Re: Turning a body around a body [Not solved yet]

hmm, yeah I still need to see it, you can pm it to me if you want. Physics is tricky sometimes. edit: OK, my mistake before, rather than settingAngularVelocity you could try body:setAngle(body:getAngle()+1*dt) obviously varying the 1 depending on speed and direction you want. This however will creat...
by The Burrito
Wed Dec 28, 2011 10:57 pm
Forum: Support and Development
Topic: Turning a body around a body [Solved]
Replies: 8
Views: 1675

Re: Turning a body around a body [Not solved yet]

It's hard to tell you how to fix it without being able to see everything thats going on, but basically the idea is that the body you want to go around in a circle is actually located at the center of the rotation, that way when you apply rotation the fact that the shape is over to the side should ca...
by The Burrito
Wed Dec 28, 2011 9:07 pm
Forum: Support and Development
Topic: Turning a body around a body [Solved]
Replies: 8
Views: 1675

Re: Turning a body around a body [Not solved yet]

Personally, if using box2D / love.physics I'd probably either stick two bodies together with a joint ( a distance joint where the fixed center circle has a mass of 0 and the outer one is nonzero) and apply some force to make the outer one spin or I think the easiest way to do it is probably to make ...
by The Burrito
Thu Dec 22, 2011 6:22 am
Forum: Libraries and Tools
Topic: Thermodynamic Demo
Replies: 6
Views: 1579

Re: Thermodynamic Demo

I've considered a few things, I'd like it to vary a bit but may still theme some levels around stuff (maybe if I do say 50 levels have groups of 5-10 levels with a little mini story to go along with them). The fact that I've been working on In The Dark for a couple of years now makes me hesitant to ...
by The Burrito
Wed Dec 21, 2011 11:08 pm
Forum: Libraries and Tools
Topic: Thermodynamic Demo
Replies: 6
Views: 1579

Re: Thermodynamic Demo

Thanks, I plan on doing away with the mouse and letting the player emit heat in different directions. Probably changing to a black - blue - red - yellow - white heat map like most people are familiar with that will overlay onto grayscaled sprites once I make some artwork.
by The Burrito
Wed Dec 21, 2011 7:43 pm
Forum: Libraries and Tools
Topic: Thermodynamic Demo
Replies: 6
Views: 1579

Thermodynamic Demo

A couple days ago I made this rough demo that revolves around heat and state changes (solid,liquid,gas). I'll probably make a real puzzle game out of it eventually, this was just sortof a proof of concept to make sure it would work and would be fun to play with. Theres no artwork or anything, just c...
by The Burrito
Tue Dec 20, 2011 6:19 pm
Forum: Support and Development
Topic: 0.8 physics derp
Replies: 4
Views: 780

0.8 physics derp

I know 0.8 isn't released yet and I should be expecting it to fail on occasion but I've already upgraded In The Dark and the only major issue I have is (I think) with fixture deletion, when you call fixture:destroy() it seems to work, but it leaves behind ghost fixtures that occasionally cause thing...
by The Burrito
Wed Dec 14, 2011 9:46 pm
Forum: Games and Creations
Topic: Hammer smashed face
Replies: 19
Views: 6227

Re: Hammer smashed face

If you do not mind, my good sir, would you show me what you mean? Sure, you could so something like this: if facing == "right" then love.graphics.draw( player, x, y ) else love.graphics.draw( player, x+player:getWidth(), y, 0, -1, 1, 0, 0 ) end Normally this would just flip the sprite over the x co...
by The Burrito
Wed Dec 14, 2011 8:14 pm
Forum: Games and Creations
Topic: Hammer smashed face
Replies: 19
Views: 6227

Re: Hammer smashed face

If you're just going to mirror the sprites anyway you could simply set the X scale to -1 when drawing and add the width of the sprite to the X position whenever you're facing left.

also lols.