How to increase force based on duration of mouse press?


  • Posts: 405
you can add a delay by making a boolean like "next bullet allowed", only create a bullet if that is true, and when the bullet is created, it will immediately be set to false and an event is triggered, which sets the boolean to true with the "do after x seconds"
Parasites United  (Idle Parasite Game)


  • Posts: 261
I'm able to create a delay in the shooting intervals, but I'm still unable to figure out why I can't create a bullet if I try to increase the force during mouse press. But it works if its just a When Shoot happens, create bullet at front, push last created actor etc etc. Once I added in the function to increase force when mouse down, or when event happens etc, it no longer creates the bullet.

I've attached my file here, hopefully someone can shed some light on this. Hope my file isn't too messy, which I'm pretty sure it is!


« Last Edit: May 28, 2016, 09:21:26 am by chongyunxiang »