Hi, first sorry for my english but its not the best:)
I have a problem with my project. My Player moves with bullet behavior, if the gamer is swiping (left or right) the bullet behavior gets activated and the player moves to certain direction. How do i trigger the player to stop automatic after a predefined distance ??
Develop games in your browser. Powerful, performant & highly capable.
Compare the player x then set the speed to 0
It's better that you try the MoveTo behavior, search for it in the plugins forum section.
in Bullet Behavior there is value called DistanceTravelled
Reference it like this:
System (compare two values) Sprite.Bullet.DistanceTravelled > 400 then do whatever
and make sure to place a System -Trigger Once While True so you don't keep triggering the same code since once that statement is true it will execute once every tick (60 times per second!).
thanks for the replys, i will try
MoveTo behavior works perfectly...thx for the tip