Simulate keys not working properly in 5.0.0-beta95

Adding a new simulate key action doesn’t work. I’ve tried it in both the PC and online editors.

To replicate:

  1. create a new platform game.
  2. Modify the PlayerHitBox’s PlatformerObject behaviour and uncheck the ‘Default Controls’ option
  3. Add the event and action:
  4. Play the game.

Result
The character won’t jump.

The problem (on the PC version)
It appears to be that the PlatformerObject parameter (should be after the line with “PlayerHitBox”) is not included as a parameter to the SimulateJumpKey action:

          "actions": [
        {
          "type": {
            "inverted": false,
            "value": "PlatformBehavior::SimulateJumpKey"
          },
          "parameters": [
            "PlayerHitBox",
            ""
          ],
          "subInstructions": []
        }
      ],

If I modify the file as follows and add "PlatformerObject" as a parameter, the jump does work:
      "actions": [
        {
          "type": {
            "inverted": false,
            "value": "PlatformBehavior::SimulateJumpKey"
          },
          "parameters": [
            "PlayerHitBox",
            "PlatformerObject"
          ],
          "subInstructions": []
        }
      ],

I’m tested this using GDevelop 5.0.0.-beta95 on Windows 10 Home edition, as well as the online editor. I’ve only modified the json file on the PC

1 Like

Thanks for reporting!

@MrMen You use the right click on Add action or the left click ?

Heh, not something I had considered, @Bouh. I mainly use the right click on Add Action.

I did a little test, and it works fine if the action is added with the left click. But not with a right click.

1 Like

Reported thank you !