Search found 53 matches
- Mon Oct 01, 2012 3:28 pm
- Forum: Support and Development
- Topic: Hardon Collider - getting stuck between tiles
- Replies: 25
- Views: 15264
Re: Using Hardon Collider (maybe a bug?)
I guess I didn't explain it well enough. The HC does not prevent objects from overlapping. It just tells you when they overlap. It's collision detection not collision prevention . The update time (dt) which is passed to the update callback is never small enough to prevent high-speed movement from ov...
- Mon Oct 01, 2012 6:43 am
- Forum: Support and Development
- Topic: Hardon Collider - getting stuck between tiles
- Replies: 25
- Views: 15264
Re: Using Hardon Collider
I think the likeliest problem is that there is a non-constant amount of time between updates -- when collision detection catches up with real time, your rectangles have already collided and are overlapping. It's not enough just to stop movement, you need to set the position of one of the two rectang...
- Thu Sep 27, 2012 5:35 am
- Forum: Support and Development
- Topic: Grid-based camera movement
- Replies: 2
- Views: 1528
Re: Grid-based camera movement
My guess is that you're setting mouse.x and mouse.y with screen coordinates while your map is using world coordinates because it has a camera attached when it's being drawn. You have a camera attached when you're drawing the world (when you draw the rectangle around the selected tile in world.lua in...
- Wed Sep 26, 2012 10:49 pm
- Forum: Support and Development
- Topic: How do you make stuff move by itself?
- Replies: 3
- Views: 1328
Re: How do you make stuff move by itself?
For the 'do', you need a corresponding 'end'. I'm not sure if this is the problem you're having, but it sounds like it.
If you post the full file (updated), or a .love, more people are likely to help.
If you post the full file (updated), or a .love, more people are likely to help.
- Wed Sep 26, 2012 8:02 am
- Forum: Support and Development
- Topic: Fade to black (that shouldn't happen)
- Replies: 8
- Views: 2760
Re: Fade to black (that shouldn't happen)
So first, back on topic: I ran into the problem again when I was implementing a menu to allow the user to set the resolution at startup. I know there are all kinds of libraries to help with this, but implementing it without them gave me much better insight into what's going on behind the scenes whic...
- Tue Sep 25, 2012 7:06 pm
- Forum: Support and Development
- Topic: Fade to black (that shouldn't happen)
- Replies: 8
- Views: 2760
Re: Fade to black (that shouldn't happen)
Thanks for taking a look. I'm wondering if it has something to do with my computer (5-year-old Dell XPS 720 with a somewhat newer NVidia GTX 460). When I take out the black (still showing the message) it works fine. Seems bizarre. I wanted to fade in from black when a the game started. No such luck ...
- Tue Sep 25, 2012 8:13 am
- Forum: Support and Development
- Topic: Turning arms with mouse cursor
- Replies: 9
- Views: 3470
Re: Turning arms with mouse cursor
You inspired me to make something for my son who is going through a cowboy phase. A little broken now, but you can see it here.
- Tue Sep 25, 2012 8:12 am
- Forum: Support and Development
- Topic: Fade to black (that shouldn't happen)
- Replies: 8
- Views: 2760
Fade to black (that shouldn't happen)
EDIT: updated the love file. Now you can choose a resolution (any of the 16x9 standard resolutions). Use up and down to select, then enter to play. The problem is 'fixed', but not to my satisfaction because I still don't know WHY it works this way, and only on some computers. Probably would be nice...
- Sun Sep 23, 2012 4:30 pm
- Forum: Support and Development
- Topic: Turning arms with mouse cursor
- Replies: 9
- Views: 3470
Re: Turning arms with mouse cursor
You'll just want to move the cowboy and his arms at the same time. The simplest way would be to move the cowboy and his arms at the same velocity -- so if the cowboy moves 5 horizontally and 5 vertically, so would his arms and they'd be together. But there are other ways to accomplish this depending...
- Sat Sep 22, 2012 5:40 pm
- Forum: Support and Development
- Topic: Procedural Generation?
- Replies: 6
- Views: 5656
Re: Procedural Generation?
There is a lot of information available about procedural map generation, especially in the RogueLike forums and web sites. Here's an example of somebody who did it with Love2d and Lua . But do a quick Google search with the key terms "procedural map generation", "lua" and "l...