Lock an ability behind an equipment pickup

@hihilogic, you mentioned once that I can use switches to make the player unable to use an ability unless a certain object is attached to them. May you show me how to do this? I’m using @00T_Free’s jetpack example to convert it into an item pickup.

I created the Grappleshot object (check the jetpack ground object and the jetpack bundle in the player for reference) I want to make the Grappleshot ability locked unless the “Grappleshot use” object is attached to the player.

1 Like

Wha- im confused. What’s the question here?

2 Likes
1 Like

Well if ur ability uses a keypress to trigger it, just send the keypress through a switch, then have the collision with the pickup trigger it

2 Likes

The grappling hook example (by CodeAlpaca) I used is very complex.

1 Like


It’s in the “spawn grappler” sprite :upside_down_face:

2 Likes

I see that. I just don’t get where to put that switch in order to fully block out the usage of the ability without the pickup.

1 Like

You did not just say that. THE. IMAGE. SHOWS YOU. YOU JUST HAVE TO TURN THE SWITCH OFF AND ON (o′┏▽┓`o)

2 Likes

i have to say, :man_facepalming:

1 Like