Search found 102 matches

by Imaculata
Sat Jun 03, 2017 1:13 pm
Forum: Support and Development
Topic: Solved: Sprite batch of text window won't render
Replies: 0
Views: 744

Solved: Sprite batch of text window won't render

(Update: this issue has been solved, see bottom of post) Hi all. It's been a while since I posted, but my game has progressed A LOT (thanks to all the kind help on this forum). I am currently implementing text boxes, so that the player can read signposts and talk to npc's. I'm using a spritebatch f...
by Imaculata
Mon Mar 27, 2017 8:57 am
Forum: Support and Development
Topic: Help in bomberman like game with bump.lua (slide in blocks edges)
Replies: 20
Views: 4853

Re: Help in bomberman like game with bump.lua (slide in blocks edges)

waiting the bomb detonation. It is important, because my next step is "enemies and AI". First of all, great to hear you're making so much progress. In regards to enemies and AI, what I think Bomberman does, is it allows the enemies to detect zones that an explosion is about to hit. One way to do th...
by Imaculata
Sun Mar 26, 2017 8:55 am
Forum: Support and Development
Topic: Collisions in my game.
Replies: 5
Views: 2010

Re: Collisions in my game.

You're welcome. It's an issue I've run into myself multiple times.
by Imaculata
Sun Mar 26, 2017 8:54 am
Forum: Support and Development
Topic: Share a Shader!
Replies: 317
Views: 132342

Re: Share a Shader!

Loving that wave shader! I'm going to give that a try for the water in my 2d platformer.
by Imaculata
Sat Mar 25, 2017 7:58 pm
Forum: Support and Development
Topic: Help in bomberman like game with bump.lua (slide in blocks edges)
Replies: 20
Views: 4853

Re: Help in bomberman like game with bump.lua (slide in blocks edges)

4) Check if the threshold for turning the corner has been reached (perhaps check if 50% or more of player's collision box is already on the desired lane); this could be done with simple rectangle queries using bump 5) Move the player onto the lane if all the required conditions are met This is pret...
by Imaculata
Sat Mar 25, 2017 6:58 pm
Forum: Support and Development
Topic: Help in bomberman like game with bump.lua (slide in blocks edges)
Replies: 20
Views: 4853

Re: Help in bomberman like game with bump.lua (slide in blocks edges)

I'm playing this on a laptop, but I presume the behavior is the same for all. When I am right above a lane and press down, nothing happens most of the time, unless my pixels are lined up perfectly. The same happens when I try to enter a lane sideways. As shown in the top picture. https://image.ibb.c...
by Imaculata
Sat Mar 25, 2017 3:58 pm
Forum: Support and Development
Topic: Collisions in my game.
Replies: 5
Views: 2010

Re: Collisions in my game.

You can use love.graphics.rectangle to draw a rectangle on the screen. Just feed the coordinates of your sprite, and of your collision, into the x/y locations of the rectangle. I usually give the two rectangles different colors for clarity. This makes it easy to see where the game thinks your sprite...
by Imaculata
Sat Mar 25, 2017 12:23 pm
Forum: Support and Development
Topic: Collisions in my game.
Replies: 5
Views: 2010

Re: Collisions in my game.

Well, I haven't looked at the code yet, but it seems to me that your image isn't 32px32px pixels for starters. It's 416px × 768px. Which means you are forced to scale down the sprite or increase the size of the collision, in code. But even then, the new image is not an image with even measurements. ...
by Imaculata
Sat Mar 25, 2017 11:09 am
Forum: Support and Development
Topic: [STI/Tiled] Less Layers For Efficency or More Layers For Readability?
Replies: 4
Views: 1320

Re: [STI/Tiled] Less Layers For Efficency or More Layers For Readability?

I haven't used Hardon Collider myself, I use Bump, but that looks totally fine. Looks what you have there is a simple and clean collision response. The reason I use a bat file, is because I want my map files to formatted the way I want them to, and not the way Tiled formats them by default. There's ...
by Imaculata
Sat Mar 25, 2017 10:52 am
Forum: Support and Development
Topic: Help in bomberman like game with bump.lua (slide in blocks edges)
Replies: 20
Views: 4853

Re: Help in bomberman like game with bump.lua (slide in blocks edges)

I'm not seeing the trembling, but I do notice another problem: You made the hitbox of the player the exact size of the player-sprite, which is also the exact same size of the gaps it has to fit through. This makes it nearly impossible to enter any of the lanes, because the player has to line up perf...