Search found 4 matches

by ProfB
Thu Oct 08, 2020 10:17 pm
Forum: Games and Creations
Topic: Timer for actions
Replies: 1
Views: 3449

Timer for actions

Hello, guys. I am trying to animate a death animation and here is what I am currently doing: when a collision is detected, I remove the dying element from the table I inserted it before, and when I do it, I'd like it to change it's image to a death one, and then be removed from the table. My problem...
by ProfB
Thu Oct 08, 2020 4:26 pm
Forum: Games and Creations
Topic: Collisions and images
Replies: 8
Views: 9008

Re: Collisions and images

While I'm further studying your code. Let me give you some helpful tips: --- In your Bullet(x, y) function init:draw() .... --- You shouldn't do this. The adjustment you made "init.x + 25" is only VISUAL. You won't see where the bullet REALLY is. love.graphics.rectangle("fill", ...
by ProfB
Thu Oct 08, 2020 12:00 pm
Forum: Games and Creations
Topic: Collisions and images
Replies: 8
Views: 9008

Re: Collisions and images

sphyrth wrote: Thu Oct 08, 2020 12:36 am Please provide us some of your code. People can help where you're going wrong and can offer the solution.
Here is my code so far.
by ProfB
Wed Oct 07, 2020 6:03 pm
Forum: Games and Creations
Topic: Collisions and images
Replies: 8
Views: 9008

Collisions and images

Hello guys. I am currently recreating "Space Invaders" but I find myself in trouble with collisions. My aliens are Quads with Images and my bullets are rectangles. I tried using their x and y coordinates along with their width and height to measure if my bullets were inside the alien, but ...