If you download the last example from the link I posted, it actually uses "pick by overlapping point" event and doesn't require any hidden objects.
Asmodean Yes, it's recursive, but it uses local variables for calculations, which are reset to default values on every tick. So if you press the button multiple times to call the function for the same number (5), every time it should return the same result. I don't understand why the results are different.
In line 5 you need to "set result to 1". This will fix it.
However, I still don't understand, why does it work like this. Variables are local and not static, so they should reset after each attempt. Can someone explain?
There is no easy way to do this, see examples in this post:
construct.net/en/forum/construct-2/how-do-i-18/spawn-particles-on-the-point-2-59886/page-3
You do not have permission to view this post
Thanks! You mean remove left and right buttons? Or all four?
For now I made them semi-transparent. And I remove them completely when keyboard input is detected.
I'm making a simple platformer, with 4 on-screen controls - left, right, jump and shoot. Which of these button layouts is better?
Or maybe there are some other (better) options?
Develop games in your browser. Powerful, performant & highly capable.
So what are these files for and how do you access and use them in the game?
You are not doing anything wrong, this is how it's designed.
I believe you can move files manually to subfolders after exporting your game, but you will need to update all AJAX calls - replace "AJAX request project file" with "AJAX request URL -> subfolder/filename"
If your layout is bigger than the screen, use OriginalWindowWidth, OriginalWindowHeight instead of layoutWidth and layoutHeight.
Touch - Is in touch -> Sprite set position to Touch.x, Touch.Y
Paster plugin should work faster:
construct.net/en/forum/extending-construct-2/addons-29/plugin-paster-66240
Member since 26 May, 2016