Advanced click and drag system

SO i wanna make a click and drag system that has restrains so youed have to put high amounts of force to drag it so lets say i made somthing that you need to rip off the wall but the current system just teleports it to the cursor so i want some sort of forcefully ripping it off mechanic

4 Likes

Use Click and drag to get the angle of the mouse and use force into that direction.

3 Likes

Example? Im very dumb

2 Likes

Force = Mass x Acceleration

Because a cursor doesn’t have a mass, you’ll have to use just acceleration. Put a speedometer in your cursor (JR has an example), and have that output the speed. If the speed is high enough, the action is executed, and the something is ripped off the wall.

3 Likes

@DinoDev

do your job and show the l i n k to da game
and then m a k e him add more code to make it A D V A N C E D

3 Likes

Getting help isn’t anyone’s job @Deadly_Smile, especially if you ask to make a new example for it.

Look, I haven’t been feeling well lately but if use my Swipe Example and my Angle To bundle, you probably could get something to work.

3 Likes

(COVID sus alerts ring in the distance)

1 Like

The alarm is the water freezing is south Texas.

2 Likes

I guess that’s a bit worse, actually :no_mouth:
Global warming’s fun.
But seriously, I hope you’re doing okay :upside_down_face:

2 Likes

Well… Sorry i havnt responded but with these wonderful ideas i can probally make it… + Texas is Freezing? (Nuclears Alarms)

1 Like

Ok sooooooooooooooooooo… how would i apply this to ragdolls exactly…

Game: Flowlab Game Creator - Physics