Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » grapple
- yoshidinosaur4
-
Scratcher
11 posts
grapple
So each vehicle in my game is gonna have a gimmick. I want to make this mecha suit's gimmick being able to grapple onto hooks with its claw/sickle arm, but i don't know how to go about this. I don't know how to make it target, Since there might be more than one onscreen at a time, and look natural. Some help would be greatly appreciated!
- GalakC
-
Scratcher
500+ posts
grapple
you can use a point to block to have the grapple always be aiming towards its target, or have it follow the mouse.
- RedAngryBird1508
-
Scratcher
62 posts
grapple
You will need to change XV by sin(Grappledir+180) and YV by cos(Grappledir+180), this makes the grapple launch the player, I know this because i've experimented with the idea, I just never released the game, anyway, I hope this helps 

- GalakC
-
Scratcher
500+ posts
grapple
You will need to change XV by sin(Grappledir+180) and YV by cos(Grappledir+180), this makes the grapple launch the player, I know this because i've experimented with the idea, I just never released the game, anyway, I hope this helps
thats true, thanks
- yoshidinosaur4
-
Scratcher
11 posts
grapple
You will need to change XV by sin(Grappledir+180) and YV by cos(Grappledir+180), this makes the grapple launch the player, I know this because i've experimented with the idea, I just never released the game, anyway, I hope this helpsThis makes my brain hurt. So does XV=X Velocity, YV=Y Velocity, Grappledir=Grapple Direction? I think i know what sin is, I saw some block with a bunch of math words, but whats cos, and how does it know what to launch towards? Sorry if this is a obvious question, my singular brain cell can't understand this
- yoshidinosaur4
-
Scratcher
11 posts
grapple
Ok so I got a way to make the claw extend and retract, but now comes the problem of having the mecha not fall, and not be able to move, only rotate.
basicaly i have it programed to where it's Y decreases untill its touching a specific shade of green, which are the ground and platforms.
basicaly i have it programed to where it's Y decreases untill its touching a specific shade of green, which are the ground and platforms.
- yoshidinosaur4
-
Scratcher
11 posts
grapple
Ok so I got a way to make the claw extend and retract, but now comes the problem of having the mecha not fall, and not be able to move, only rotate.ok, i figured that out, but when you get off, he snaps back to the original position when he got on the bar, not where he ‘was’ when he got off. I think this is because i am using rotation instead of moving the sprite. I'm not sure how to make this work
basicaly i have it programed to where it's Y decreases untill its touching a specific shade of green, which are the ground and platforms.
- Discussion Forums
- » Help with Scripts
-
» grapple


