@AnD4D
That could be achieved by setting force (polar) to
force : max amount - clamp(distance(object.x,object.y,blackhole.x,blackhole.y),0,max amount)
angle : angle(object.x,object.y,blackhole.x,blackhole.y)
Nabu0001 wrote:Hello @MarkeGamer,
I've never used the touch but, basicaly I think just check the direction of the touch (with somethin like touch start and touch end, I don't know) and apply an impulse with Chipmunk physics at that direction or an angle (switch to polar when setting the impulse).
Lordshiva1948 wrote:MarkeGamer you will find demo here and many more as you are newbie in construct 2
https://www.dropbox.com/s/djjowh9avzqpb ... .capx?dl=0
Who is online |
Users browsing this forum: No registered users and 0 guests |