Forum rules - please read before posting.

InputGetButton and InputGetButtonDown are the same alias?

Hey,

I was just using the before mentioned functions in my Project for controlling, when I saw (reading the documentation) that they are technically the same thing. Is there a reason for this? I would really like to use InputGetButtonDown as usual (only registering the first frame the button is pressed) in my project but at the same time I want to keep using the Kickstarter Player Input. Is the documentation accurate?

Documentation for reference:
https://adventurecreator.org/scripting-guide/class_a_c_1_1_player_input.html#aa937ad734ee65aa4ab795b832a7f9cc4

Thanks in advance!

Comments

  • The "returns" doc should be more detailed (which I'll address), but the two are separate.

    Both are AC's equivalent of Unity's own Input.GetButton and Input.GetButtonDown functions - with the first being true for the whole time a button is held down, while the second being true only when initially pressed (ie. the "down" state").

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.