I posted explanations in that post. This method is not perfect as it requires you to duplicate collision polygons with image points.
The first capx you downloaded is using a "detector" sprite - a small invisible object that's traveling from image point to image point and detects collisions with asteroid. In the last capx I got rid of that sprite and used "Pick by overlapping point" event instead. But it basically does the same thing - moves a virtual point and checks if there is an asteroid overlapping this position.
To highlight words you can use BBcode addon. But if you are asking how to sync voice with text, I don't know if this is possible.
Asmodean No, apart from that little mistake in line 5 the function does work. It's just not as optimized as your version.
"result" is the name of your variable.
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.
Develop games in your browser. Powerful, performant & highly capable.
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?
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