Hello there !
I’m currently trying to make my keys a “pushable button” that you need to unpress to do the action a second time etc… (like a gameboy button for exemple)
How can I trigger that ?
I tried many ways etc… But I can’t figure it out…
I’m not sure I understand. Did you try adding a trigger once? What are your events? My only other thought is something you’re doing needs to use an added Boolean variable and either toggle it or set it to true and false.
If there’s a trigger once then I’m not sure what’s happening or not happening. Can you post a screenshot of the line(s) that’s not behaving in the way that you want it to?
There is a lot of code, since it all my “jump part” that does not work like intended, bc when i keep space down, the animation of jump is still playin while on the floor
Is it always still set to the jump animation after jumping or just certain times? I can’t say that you have all the scenarios captured but you have to be close. The only one I didn’t see is an idle action for when the player is idle and space is pressed. Something to trigger when the player lands.
It’s mroe complex than that, unfortunatly I cant screenshot all of the events assiociated because it will be a long long time since “Space” is in almost every events of every movements for transitions.
At least I could try using a timer for the jump key, but It will not resolve the entire problem, since I wouldnt be able to control the jump high when jumping (fun fact : i cannot even now lol)
Maybe the boolean Value could do something but Do i need to repeat it in every player states ?
I’m a bit confuse x)
I can’t answer that. It depends on where the issue is. You just need to trace each possible path. Maybe make a flowchart or truth table. IDK. I wish I could help.
The issues is, I think, related to the Space key that can be hold for continuing playing the animation, that’s why I want to “Patch” this by adding a “function” to act like a Gameboy button, that you need to un-press and press again to re-do the action ^^
I should try make my own inputs, maybe it could be easier, with all the informations and ideas you gave to me
Hello, thanks for your answer,
Do you have a visual of what you wrote ? Because i’m not sure to understand the structure ^^
Like maybe doing thoses evnts in gdevelop so i can see