Top-down surface friction demo
Top-down surface friction demo
Box2d friction joints used to emulate top-down friction. Works even with mobile surface bodies.
- Attachments
-
SurfaceFriction.love
- Control with WSAD.
- (2.46 KiB) Downloaded 833 times
-
- Prole
- Posts: 3
- Joined: Sun Apr 13, 2014 10:22 pm
Re: Top-down surface friction demo
This is very awesome.
I am wondering if there is a way to look at the source from a .love file. I am new to this, but would like to learn as much as I can. This would be great for a top-down racing/driving game.
I am wondering if there is a way to look at the source from a .love file. I am new to this, but would like to learn as much as I can. This would be great for a top-down racing/driving game.
Re: Top-down surface friction demo
Change the extension from a .love to a .zip, then you can view it as a normal .zip file.
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
Re: Top-down surface friction demo
Hope you see this!
I was wondering if I could use your code for turning like how you rotated then went forward. I wanted to use that code for something I'm making. I'm not sure if I'll share it on here but if I do I'll give you credit in code and in the game
Great idea too!
I was wondering if I could use your code for turning like how you rotated then went forward. I wanted to use that code for something I'm making. I'm not sure if I'll share it on here but if I do I'll give you credit in code and in the game

http://xkcd.com/979/
Code: Select all
if signature = true then
print(signaturetext)
else
print("Error: Signature Not Found")
end
Re: Top-down surface friction demo
On second thought, Took a look through your code and I've realized it much harder the way you set it up because you wanted to make that section orientated to your "game" thing so is there a chance you can message me or give me a bit of help on how to do that? If so that would be great thanks 

http://xkcd.com/979/
Code: Select all
if signature = true then
print(signaturetext)
else
print("Error: Signature Not Found")
end
Re: Top-down surface friction demo
Sure! You can use it! I'll show you the important parts:
Then you set that as the direction. Good luck!
Code: Select all
Direction = math.atan2( ( ObjectY - TargetY ), ( ObjectX - TargetX ) )
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
Re: Top-down surface friction demo
I'm very confused is it alright if I put this up on media fire and you can download it and give me some help?davisdude wrote:Sure! You can use it! I'll show you the important parts:Then you set that as the direction. Good luck!Code: Select all
Direction = math.atan2( ( ObjectY - TargetY ), ( ObjectX - TargetX ) )
http://xkcd.com/979/
Code: Select all
if signature = true then
print(signaturetext)
else
print("Error: Signature Not Found")
end
Re: Top-down surface friction demo
I tried to make a box2d car game once, but yours is way better.
- Attachments
-
box2dCar.love
- press rmb to add trees
- (57.36 KiB) Downloaded 259 times
I love okra.

Who is online
Users browsing this forum: Amazon [Bot], Google [Bot] and 1 guest