I have a pointer that has drag drop associated with it.
While moving it around, I wish to have my barrel follow the pointer.
I've tried pin action but that doesn't work.
ugly graphic of what I mean
use the action "set angle toward position" on your gun and set it to x = point.x, y = point.y
hopr37 Just create a System event with Every Tick condition then follow the provided step by cvp
I did that . and used every tick. But the gun flips around and doesn't stay positioned.
I tried anchor but that didn't help.
It's the right idea but I'm getting something wrong.
I need to keep the gun positioned at a fixed point and when I move the pointer, the gun follows the pointer but stays at a fixed location.
I've moved my image point but still no go.
While clicked, set the barrel angle to "angle(barrel.x,barrel.y,mouse.x,mouse.y)".
supply your capx if possible. The steps we have provided should do what you ask.
Then we can debug it and see what the problem is.
Develop games in your browser. Powerful, performant & highly capable.
sorry CVP. Should have said that I have gotten it to work. My bad. Thanks for the interest tho.