I believe there is a timer object or behavior that might help also you could use system every x seconds. Not sure what method would work best for you but when I do random movement for enemies every x seconds works for me.
I believe there is a timer object or behavior that might help also you could use system every x seconds.
Not sure what method would work best for you but when I do random movement for enemies every x seconds works for me.
i need to move my enemy indefinitely up and down
i need to move my enemy every Time up and down
i have this but not work well
thanks.
i don't understand
i have a enemy with SINE and he moves up and down but with the same animation, I need to know how to put put an animation that goes up and another down.
Start the animation using the object touched event, not the is touching. And use the on touch end to finish, not the 'x is touching'
not work
Develop games in your browser. Powerful, performant & highly capable.
try this aproach: use dummy sprite (blank, invisible) and set it to create on any touch at touch x and y than set your events something like this: on touched sprite + if dummy is overlaping that sprite + set that sprite variable from 0 to 1 = key pressed action and something like this: on any touch end + sprite has variable 1 + dummy gets destroyed = key released action and then return sprite variable to 0
try this aproach:
use dummy sprite (blank, invisible)
and set it to create on any touch at touch x and y
than set your events something like this:
on touched sprite + if dummy is overlaping that sprite + set that sprite variable from 0 to 1 = key pressed action
and something like this:
on any touch end + sprite has variable 1 + dummy gets destroyed = key released action
and then return sprite variable to 0
i dont understand
i put this and not work
If you are making a game where the object has a built in behaviour, there should be a behaviour event which would suit the case better Or you could use the on touch end functions. If you have representations of the keys in game you can use a system like:
If you are making a game where the object has a built in behaviour, there should be a behaviour event which would suit the case better
Or you could use the on touch end functions.
If you have representations of the keys in game you can use a system like:
i do not understand how I can put that
Oh so you are trying to make this same thing but instead of keyboard you wanna do on touch?
exactly
How do I create a touch release
what I want is to create this same but touch:
I tried to invert the function 'is touching' but does not work well
sorry by my bad english i talk spanish.