You shouldn't need a loop if this is already a parallel event. Why not do some basic troubleshooting and press F9 to see if your Control Variable 3 is increasing at all?
You are correct, the variable does not rise with loop. Or, rather, it stops on 1.
But i need loop, if i remove it, portals stack one on top of another. It seems like they spawn and disappear all the time while button is being held, and without loop they do not despawn.
Also, if i remove loop from the pagedown event, it does not change anything, it is not working even despite variable counting.
For me it looks like since RM does not have any native support for holding a button instead of pushing it, and it can be only done trough variables and stuff there is no way to use this bullet on anything but touch input, making it impossible to use on the controller.
That, of course, if you don't know any other way to check if player is holding the button pressed.
UPDATE: i tested the
Input.isPressed('pagedown')
That should be absolutly valid script, and it does summon portals, but they don't fire anyting, and as before one extra portal blinks on top of the character. It's so weird, the entire script are exactly the same, but if you only change touch input to button hold it becomes bugged like that... for no reason at all.
UPDATE 2: Ok i got it to work, but it is still not working! Or, rather, it breaks after first cycle.
I realized that the second command, and the command inside the enemy should be written starting from the exclamation mark. No idea what it does, but i assume that it serves as a check if button is held instead of pressed. So the proper event looks like this:
But it still breaks.
- If i put it in the same event as main one (touch input) under else statement, it breaks both of the events.
- If i put the separate parallel event only with this command, it works perfectly until i release the button. Afterward it does not work at all, nothing happens when i press it. WHYYYYY? Now it's exactly the same as the original one! Unlike touch input - something stops it from repeating itself, but what? THEY ARE THE SAAAAAME! I even made seperate enemy events for the pagedown press.