You need to Vector X and Vector Y in an angle from the player to the enemy. Something like this:
Player on collision with Enemy: local variable a Set a to angle(Player.x, Player.y, Enemy.x, Enemy.y) Enemy set Vector X to cos(a)*100 Enemy set Vector Y to sin(a)*100
100 here is the force of the knockback.
For example, if you have a lava tile at index 5 in your tilemap:
Tilemap Compare tile at X=(Tilemap.PositionToTileX(Player.x), Y=(Tilemap.PositionToTileY(Player.y)) EQUALS 5 ...... Player subtract 1 from health
I don't think it's possible. When I need to process many layers in a loop, I name them like L1, L2, L3 or UI1, UI2, UI3 etc.
And then I can do, for example:
For "n" from 1 to 10 Set Layer "UI"&loopindex invisible
Sound requires a user interaction to enable it.
I think it's only true for web games, in a mobile app you can start music playback without touching the screen.
Your event picks all platforms which are below the player. You need to exclude platforms which you've already counted. For example, you can disable their collisions and pick only platforms with enabled collisions:
Platform Collisions enabled and Platform Y>Player.Y+18 Trigger Once Platform set collisions disabled Add 1 to score
Or use a boolean instance variable.
Not sure what you mean by "closure" here. Local variable are always reset to their default value after a wait. If you don't want to reset, set the variable as static.
Check out this demo:
howtoconstructdemos.com/walking-around-buildings-in-isometric-view-capx
Origin image point position and collision polygons are important here.
Develop games in your browser. Powerful, performant & highly capable.
But is this reported/getting fixed in next release?
I believe so.
Try to disable minification when exporting.
You do not have permission to view this post
An idea to add circle collision mask was first suggested 3 years ago, still no comments from Scirra...
construct3.ideas.aha.io/ideas/C3-I-223
I think you should report it here:
github.com/Scirra/Construct-3-bugs/issues
Include your project and an example of the photo (original file, not resized).
On my laptop it still runs at 60fps when the window is maximized, and in full-screen. Must be something with your PC, try updating video drivers. If you are using C3 desktop build - update NWJS.