so that you only set the animation if its different fro mthe current one
add the conditon animation
is not playing
ok so by just glancing at it, it doesn'T use modules so set scripts type to classic, and it uses the window context so turn worker off, but you should probably open the console yourself and check for error messages
what error do you get when you open the console ?
Yes, use the "set canvas size" action
it depends how you control your character but you can get the normal between the two sprites and set the movement of the running away sprite by multiplying -speed on the X and Y normal of the running away sprite if you want that'S super simple
if you wanna do some weird stuff, you can like pathfind the running away sprite in that direction with another sprite to test for collision and if that other sprite finds collision you move it further away until it is placeable and then pathfind to there with the running away sprite so your running away sprite could move around obstacles
Develop games in your browser. Powerful, performant & highly capable.
in the demonoire demo you can buy better equipment for your character, what kind of unlocks are you looking for ?
hey so in the editor there is this button
you can hold the CTRL key to apply it to all animations and it should pad all of your images with a transparent border to reduce this, if it doesn'T work, find out which one is causing the lines and add more border to them manually
Hey I sell an asset to fix this exact problem if you'Re interested
construct.net/en/game-assets/game-templates/pixel-perfect-resolution-554
are posts like this allowed?
couple things i see is that on every tick you'Re setting the animation to the first frame of animation and that the animation has the looping property to off
you can make a sub-condition to your "green arrow event"
so you would have -
ON collision:
if animation red playing, set animation to green
if animation green playing, set animation to red
instead of having two "on collision"
yeah i should have polished it and sold it on the asset store but it is what it is
Member since 7 May, 2020