Is there any way to tell if a button is held down and for how long because I am attempting to regain health when you hold the button down but I don’t want to use score as a way of checking, please respond as quickly as possible.
In advance thanks,
Fixitude
Yep! Instead of using the “On Button Pressed” blocks, you could use some “if ” blocks inside an On Game Update block. You could make a variable like “Button A Press Time” and increase in by 1 every time the A button is pressed, and if the A button is ever not pressed you set the variable to 0!
Like this:
I think the button repeat on controller does this, (on a button repeatj
Thank you so much, that has helped massively I have one problem with it though, when I go through the normal system it works fine, so does shooting. When I go through the menu system it doesn’t work and the shooting doesn’t shoot both directions, very weird…
I would have to see the code you’re working on to figure that one out. Are you saying that the System Menu, the one that opens when you press the menu button, is messing something up? Anyways, I’m glad it worked!
Okay. (Breath In… Out…) I love my game but it has more errors then I can count on my fingers that I have no clue how to fix, I will provide the link (WITH AGONY) and Realease this early version of my game, please if you have time play my game to every Avenue you can think of and troubleshoot problems and once you have done that put it back in this chat and I will update it to my version.
I am kinda depressed, I can’t work on my game till it gets fixed and after a 3 days I have fixed one problem the shooting facing problem.
I did this like 2 days ago so I don’t really remember everything I did. I believe I fixed some stuff with the start menu? Like being able to press B in the 2nd menu to start the game without the menu being destroyed.
Thanks, That helps.