Thanks a lotMadByte wrote:Take a look at this basic shooting example:It should make clear what is going wrong with your code.

Thanks a lotMadByte wrote:Take a look at this basic shooting example:It should make clear what is going wrong with your code.
zorg wrote:I also see in the pastebin snippet that you define bullet.speed, but nowhere are any numeric keys defined inside bullet, much less a dx or dy member for them.
Code: Select all
local bulletDx = bullet.speed * math.cos(angle)
local bulletDy = bullet.speed * math.sin(angle)
Oh, alright, sorry.zorg wrote:[/code]Code: Select all
These kind of tags: [code]