Adding a new simulate key action doesn’t work. I’ve tried it in both the PC and online editors.
To replicate:
- create a new platform game.
- Modify the PlayerHitBox’s PlatformerObject behaviour and uncheck the ‘Default Controls’ option
- Add the event and action:
- 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