Hi, I am creating a fireball that bounces up and down, and my problem is I can’t seem to get past it.
It is simply moving up and down to fast to get through it. I am using applyLinearImpulse because I like the realistic way it falls back down, it decelerates, peaks, and then falls back downwards. Lowering the linearImpulse causes the fireball to not even make it out of the lava. timer.performWithDelay does not work either.
Just to be clear, this about making my fireball appear less so that the player can actually get through the fireball.
Here’s my code:
function instance:collision(event) if event.phase == "began" then if event.other.objType == "ricochet" then instance:applyLinearImpulse(0, -60, self.x, self.y) end end end
Any other ways to go about doing this?