Try z-sorting the trunks as it's done in my example, and move all leaves to another layer, which is above the layer with trunks and player.
This is one of the most popular questions here - how do you refer to two different instances of the same object in one event.
In expression editor you can use instance IID. For example:
Pick instance of sprite -> Sprite set animation frame to Sprite(7).AnimationFrame
Where 7 is the IID of the second sprite instance.
.
Alternative method is to use a family. Add your sprite to a family, and then you can pick one instance of the sprite, and one instance of the family in the same event.
Pick instance of sprite Pick instance of family -> Sprite set animation frame to Family.AnimationFrame
Here you go:
dropbox.com/s/mvysoj0hri5w3h7/WeaponChange.capx
Note that there is a "color" instance variable defined on the Weapon sprites. Color values should be the same as character animations.
Have you read the official manual? "Making AJAX requests cross-domain or in preview" part:
scirra.com/manual/107/ajax
You need this plugin:
construct.net/en/forum/extending-construct-2/addons-29/behavior-easystar-js-pathfindi-96215
Rexrainbow also has a bunch of addons for grid-based games, you may find something useful:
construct.net/en/forum/extending-construct-2/addons-29/plugin-board-layout2board-beha-47187
There are also several tutorials on how to move on a grid:
scirra.com/tutorials/all
I don't understand your question, but I think this change will help:
From what I can see it's a simple 8-direction movement with animation change.
See this tutorial:
scirra.com/tutorials/1117/animation-management-in-8-direction-games
If the object is not moving too fast, you can make the same trail effect with just 1 particles and no events.
dropbox.com/s/v92bzkve0x6fdx6/ParticlesTrail2.capx
Develop games in your browser. Powerful, performant & highly capable.
Yeah, the C2 tutorials section is seriously broken. You can't upload certain files, can't insert code, can't leave comments, can't switch language... And Scirra team doesn't seem to care.
I'm guessing indexof() expression is the most efficient. I doubt that looping through the array with events will be faster.
Why don't you simply try different methods and find the most efficient?
You can search for the same word 1000 times for example, and see how long does it take with each method. Or do this on every tick and compare fps and cpu usage in Debug Mode.
It's your second post with the same question and I still don't understand what you mean. Why do you need to cut the tree in half?
If you want to walk "behind" it, simply change z-order (move character behind the tree or to the bottom of the layer).
Check out this capx, it may be relevant:
dropbox.com/s/lbewjvv6rekd2na/IsometricForest.capx
Member since 26 May, 2016