Search found 81 matches
- Mon Sep 01, 2014 1:51 pm
- Forum: Support and Development
- Topic: Love.physics hit detection question
- Replies: 4
- Views: 3962
Re: Love.physics hit detection question
I'm trying to make a 'bullet' (body) disappear when it hits anything, but nothing seems to happen. Here's the essential reason: In beginCollision you are comparing fixtures ( a and b ) to a table you created ( objects.block9 ), which will always be false. Even correcting for that, you still have an...
- Thu Aug 28, 2014 3:58 am
- Forum: Games and Creations
- Topic: Hangman - for the extraordinarily bored.
- Replies: 5
- Views: 3269
Re: Hangman - for the extraordinarily bored.
Could add like a replay button or something? Nicely made, and goddamn those are something else, I got 3 in a row though, counterattack, nepotist, and exercise. Thanks, and well done! Regarding a replay button, space lets you start a new game once the current one ends. Oh, and in case anyone is inte...
- Wed Aug 06, 2014 6:16 pm
- Forum: Support and Development
- Topic: [solved] spurious 'invalid order function for sorting' error
- Replies: 3
- Views: 4688
Re: spurious 'invalid order function for sorting' error
Thanks! Unfortunately I now feel like an idiot. The lua documentation does indeed clearly state:
Hopefully I eventually learn to read.If comp is given, then it must be a function that receives two list elements and returns true when the first element must come before the second in the final order
- Wed Aug 06, 2014 5:57 pm
- Forum: Support and Development
- Topic: [solved] spurious 'invalid order function for sorting' error
- Replies: 3
- Views: 4688
[solved] spurious 'invalid order function for sorting' error
This is the error I've received: Error: les.lua:28: invalid order function for sorting Here are lines 28 - 30 of les.lua: table.sort(systems, function(a, b) return a.sort < b.sort and a or b end) Here is what the systems table looks like immediately prior: { { draw = true, func = function() --[[..sk...
- Wed Aug 06, 2014 2:07 am
- Forum: Support and Development
- Topic: Action RPG Game in Love2D
- Replies: 10
- Views: 7569
Re: Action RPG Game in Love2D
I messed up before. I had tested 16 and larger, but not, evidently, smaller than 16. I've edited my previous post's code, adding in the correction to make it work in all cases.
- Sat Aug 02, 2014 12:00 am
- Forum: Support and Development
- Topic: Action RPG Game in Love2D
- Replies: 10
- Views: 7569
Re: Action RPG Game in Love2D
... I had trouble when the player/enemy hitbox were bigger than the cellsize. My cellsize was 16x16 back then and when something was bigger than that (like 20x20) awkward stuff started happening like objects getting into tiles instead of colliding properly. I'm not able to test your code right now,...
- Thu Jul 31, 2014 8:15 pm
- Forum: Support and Development
- Topic: Action RPG Game in Love2D
- Replies: 10
- Views: 7569
Re: Action RPG Game in Love2D
Well, my big worry is about handling collisions in a tilemap properly. Check it out, I wrote a solution and explanation of this problem last month, which you might find useful. ...I had trouble when the player/enemy hitbox were bigger than the cellsize. My cellsize was 16x16 back then and when some...
- Thu Jul 31, 2014 3:27 pm
- Forum: Support and Development
- Topic: Having a shape overlay another shape.
- Replies: 3
- Views: 1945
Re: Having a shape overlay another shape.
The drawing order is the order in which you call things to be drawn. Simply call the hud items later in love.draw().
Of course there are more complicated ways of doing things, like Skip list:Drawing Order or Draw order depending on Y position
Of course there are more complicated ways of doing things, like Skip list:Drawing Order or Draw order depending on Y position
- Thu Jul 31, 2014 2:58 pm
- Forum: Support and Development
- Topic: Action RPG Game in Love2D
- Replies: 10
- Views: 7569
Re: Action RPG Game in Love2D
Check it out, I wrote a solution and explanation of this problem last month, which you might find useful.megalukes wrote:Well, my big worry is about handling collisions in a tilemap properly.
- Sun Jul 27, 2014 2:23 am
- Forum: Games and Creations
- Topic: Hangman - for the extraordinarily bored.
- Replies: 5
- Views: 3269
Re: Hangman - for the extraordinarily bored.
Not being a native english speaked, I find it quite difficult with some words... No worries. Even as a native English speaker, with an extensive vocabulary, the game still gives me words I've never heard before. Words like leatherettes , beebread , and decoupaging . The word list I'm using is impre...