Push hold button

● ARCHIVED · READ-ONLY
Started by nio kasgami 4 posts View original ↗
  1. Just curious if they exist in rgss3 the option when you push a command you need to hold the command for make the option work

    like a exemple

    I don't see any kind of option in the helps files
  2. I'm assuming you're referring to Input.press?(sym)

    You can write a conditional with it to check if a button is being held down.

    Code:
    if Input.press?(:C)  # The :C button is being heldelse  # The :C button is not being heldend
    You could also look up Input in the help file for more information on the things you can do with it.
  3. Input.press?(button)returns true from the point of pushing <button> down, to the point it's released; thus, if the player barely taps <button> but the script happens to catch it, then it'll trigger the condition anyway...
    I think that

    Code:
    Input.repeat?(button)
    would best suit this?
  4. I am not sure I am less acoutumated to button option but

    repeat seem a wise choices