Thank you (:
Actually, I posted this a while ago with much more detail, thanks for your interest and please check out that post.
pretty much it.
yeah, that's it.
Sorry, I meant collision as like, solid objects.
I thought of using the line of sight behavior, but as it may get overcomplicated, I posted it to see if anyone has come up with a better way to do it.
Thanks!
BTW, may I use your project as an example to report it? I think it demonstrates very well!
Thanks man!
Develop games in your browser. Powerful, performant & highly capable.
I think you didn't understand what I want, I want the turret to aim for a target only if there is no solid objects between them.
Well, the title is very self explanatory.
Thanks in advance!
So, I'm making a tower defense game and I made a family of sprites with turret behavior, but there is one turret from this family that I want to be the only one to aim for a specific target object... How to do this?
When I try to add the object I want as a target for that one turret (not one instance, one object), it ends up being added to the hole family.
you can use my project to test which number correspond with each direction, then use:
detect angle <number you got from testing> -- set animation to <the animation you want>
I was playing around with the pathfinding behavior trying to find a solution for this, and I discovered an expression (Sprite.Pathfinding.MovingAngle) which I didn't understand very well, because the value doesn't seem exact, but it should work for you.
Here is an example: drive.google.com/file/d/1msNG-Z85tBGa6Yl7b5uEyOhD9R2A0lHB/view
Now you just need to detect this value and set the animation accordingly, and that should be it!
(;
Member since 11 Nov, 2018