Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.
Hey there, I'm new to RGSS("RUBY") and well I find the language easy to learn but the controls are kinda bugging me. Is there any in depth tutorials on controls for RGSS?
The system used by RGSS is to update the input controls only when explicitly requested, in this case through a call to Input.update. It is part of the normal update loop in a scene. Calling Input.trigger? determines whether a button was just pressed.
Code:
loop do
# Updates the graphics
Graphics.update
# Updates input
Input.update
if Input.trigger?(Input::C)
# C button was pressed
print("C button was pressed")
end
end