Bullet Generation

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Beelz
Party member
Posts: 234
Joined: Thu Sep 24, 2015 1:05 pm
Location: New York, USA
Contact:

Bullet Generation

Post by Beelz »

So I've been having issues getting the bullets to show. Idk I'm going crazy... Any ideas?
Included as a .love and the source.
Zombies.zip
(18.33 KiB) Downloaded 190 times

Code: Select all

if self:hasBeer() then self:drink()
else self:getBeer() end
GitHub -- Website
User avatar
0x72
Citizen
Posts: 55
Joined: Thu Jun 18, 2015 9:02 am

Re: Bullet Generation

Post by 0x72 »

I'm not 100% sure if this is what you have a problem with but as far as I can see you never call createBullets()

adding:

Code: Select all

function love.mousepressed()
  createBullets() -- actually it creates just one, shouldn't it be renamed to createBullet() ?
end
let me create (and draw) them although they still not behave as they should (I believe this is because they slide instead of cross, please check out the bump docs for that)

:)
User avatar
Beelz
Party member
Posts: 234
Joined: Thu Sep 24, 2015 1:05 pm
Location: New York, USA
Contact:

[Solved] Bullet Generation

Post by Beelz »

Thanks that got it working! Something stupid of course... I see what you mean though it's still messed up, I'm looking into that next. My intended plan is to turn up the bullet speed and have them move at a constant velocity until they hit something, then remove them.

Code: Select all

if self:hasBeer() then self:drink()
else self:getBeer() end
GitHub -- Website
Post Reply

Who is online

Users browsing this forum: No registered users and 207 guests