Alon, you can cut the animated bar using a mask sprite with a blend mode. Change the mask width from right to left.
Check that "Use simplified interface" is disabled in program settings.
Also, Local Storage may already be added to your project.
I did this:
.
max returns the largest of several numbers, min returns the lowest of several numbers. You can also use clamp(health, 0, MaxHealth)
It's all in the documentation :)
construct.net/en/make-games/manuals/construct-3/system-reference/system-expressions
Tile size is 16, pathfidning cell size is 32, that's why it doesn't work. Put 16 or less.
Also, never use "find path" on every tick! Change it to "Every 1 second", or only search for path when the sprite is not moving.
If you remove the delay, I think the platform gets destroyed before your character lands on it. Try using "On landed" event instead of "Is Overlapping at offset".
If it still doesn't work, try "Wait 0" to wait just one tick.
Please post your capx, or a screenshot of your event sheet.
Develop games in your browser. Powerful, performant & highly capable.
Black tiles should be empty (erased), or without the collision polygon. Also, you need to properly set cell size and border for Pathfinding.
I suggest you try EasyStar.js addon.
You need NWJS. You can check if the file exists in NWjs.AppFolder, NWjs.ProjectFilesFolder and maybe NWjs.UserFolder&YourGameFolder
If the file is not there, just display a message that the file is not found. Because searching the entire PC is a difficult task and will take a very long time.
You need to set only some tiles on the tilemap, leaving other empty. Or remove collision polygon from tiles that should be walkable. Check this demo:
howtoconstructdemos.com/using-an-invisible-tilemap-as-an-obstacle-map-for-pathfinding-capx
I also highly recommend this addon, it's optimized for tilmaps and works better and faster than the official Pathfinding behavior. And you can specify which tiles are walkable there:
construct.net/en/forum/extending-construct-2/addons-29/behavior-easystar-js-pathfindi-96215
Here you go:
dropbox.com/s/2izh7wqm1hs4hqa/HP%20Change%20-%20using%20TWEEN%20-%20TEST%20.c3p
I used Bounce easing for fun :)
You do not have permission to view this post
Member since 26 May, 2016