the lenght I touch a button, to more power a actor should be have

MarcoColMarcoCol Member, PRO Posts: 279
Hi,

I am not sure, how I can make this:
I want to throw an actor with different speed, the longer the player touch the button.
For example:
If the player hold (touch) the button for 0 to 0.5 seconds, the speed of the actor which should be "thrown" into the direction of 30° should be 100
If the player hold (touch) the button for 0.5 to 1 seconds, the speed of the actor which should be "thrown" into the direction of 30° should be 150
If the player hold (touch) the button for 1 to 1.5 seconds, the speed of the actor which should be "thrown" into the direction of 30° should be 200

Comments

  • mrpacogpmrpacogp Member Posts: 400
    You have answered your question on the template Cannon Physics.
Sign In or Register to comment.