Forums » Off-Topic

Trouble with programming script.

  • May 12, 2022 5:00 PM PDT

    Was bored and wanted to put some effort in le programming and I need help now, do you guys know what im supposed to put after the { in each if input (script below}

     

    using GodotEngine:

    publicclass: playermove : MonoBehavior

    var = gravity 0.5
    veloticy = 0.10
    if input upkey (keycode.W)) { // le code
    if input downkey (keycode.S)) { // also le code
    if input rightkey (keycode.D)) { // even more code
    if input leftkey (keycode.A)) { // LE CODE

     


    This post was edited by Deleted Member at May 12, 2022 5:02 PM PDT