Search found 9 matches

by DireMitten
Wed Apr 05, 2017 3:52 pm
Forum: Support and Development
Topic: Physics/Box2D: prismatic joints?
Replies: 10
Views: 8317

Re: Physics/Box2D: prismatic joints?

Oh sorry, I misunderstood your previous comment. Yeah, you're right. But now that I'm getting the hang of Box2D, it's going pretty smoothly. It doesn't have to be perfect, and I feel like I can prototype/iterate faster with it, compared to doing everything from scratch. Thanks for reminding me though.
by DireMitten
Wed Apr 05, 2017 2:58 pm
Forum: Support and Development
Topic: Physics/Box2D: prismatic joints?
Replies: 10
Views: 8317

Re: Physics/Box2D: prismatic joints?

I'm still going to be using Box2D/love.physics, but I won't be using any constraints. Whipping up a solution like I explained (or tried to explain, anyway <.<) was quick and easy. Here is a gif of it working almost as intended: https://love2d.org/imgmirrur/V7uXjxp.gif As you might be able to see, th...
by DireMitten
Wed Apr 05, 2017 1:11 pm
Forum: Support and Development
Topic: Physics/Box2D: prismatic joints?
Replies: 10
Views: 8317

Re: Physics/Box2D: prismatic joints?

Thanks a lot people <3 From your advice and some time to think about it, I've come to a conclusion: I'm going to find another way of doing it. Specifically I'm trying to make a match 3 game sorta deal. You press a directional button to change the "gravity", and when blocks fall into place ...
by DireMitten
Tue Apr 04, 2017 2:24 pm
Forum: Support and Development
Topic: "Attempt to index global x a (a nil value)" error
Replies: 7
Views: 5707

Re: "Attempt to index global x a (a nil value)" error

Hmm. Seems like the second one should work. Could you try with this, and tell us what the console prints? You can run Love2D games with the console just by dragging and dropping your project folder onto love c .exe for i=1, 3 do print(i, "button" .. i) x = TextButton:new("button"...
by DireMitten
Tue Apr 04, 2017 2:19 pm
Forum: Support and Development
Topic: collision with complexe shapes
Replies: 2
Views: 2408

Re: collision with complexe shapes

If you use Box2D (which is what love.physics is), you can use Edge shapes instead of Rectangles. These are essentially just lines, so you only have to give it two points for each edge in your shape. You can also use Polygon shapes, but they are limited to at most 8 points, and have to be convex, so ...
by DireMitten
Tue Apr 04, 2017 2:16 pm
Forum: Support and Development
Topic: Physics/Box2D: prismatic joints?
Replies: 10
Views: 8317

Physics/Box2D: prismatic joints?

I'm trying to constrain a body to a line segment, which lies between two other bodies. I'm calling this constraint a "rail". Here is a drawing of what I'm trying to do: https://love2d.org/imgmirrur/sktpa6a.png The green circle should move freely along the green arrows, and should not be ab...
by DireMitten
Sat Jun 25, 2016 12:38 pm
Forum: Support and Development
Topic: Drawing part of image inside a circle
Replies: 11
Views: 8421

Re: Drawing part of image inside a circle

Okay, so I got the stencil thing to work. It looks like this now: http://sendvid.com/w9cc1jaz

I'm pretty satisfied. Though the clouds don't wrap very nicely around the planet. They just disappear when they reach the end of the stencil. Any ideas on how I can fix this?
by DireMitten
Fri Jun 24, 2016 2:39 pm
Forum: Support and Development
Topic: Drawing part of image inside a circle
Replies: 11
Views: 8421

Re: Drawing part of image inside a circle

Thanks to all of you for the great answers. It seems like stencils is the way to go for the "kurzgesagt" style. I'll probably look into doing it using shaders too, just for the fun of it.
by DireMitten
Thu Jun 23, 2016 3:20 pm
Forum: Support and Development
Topic: Drawing part of image inside a circle
Replies: 11
Views: 8421

Drawing part of image inside a circle

Hiya. First post here. Also about my first real game with Löve2D :D I'm working on a game in which the player must defend the earth from space missiles. You can see a video of it here . I want to make it look like the planet is spinning, and I imagined that I'd do this by having a simple scrolling t...