How to make a double condition?

I am trying to create an ability in one of my games, where once you collect an orb, you have the ability to press a key on the keyboard to do a high jump.

I have the jump and run controls already, but I can’t figure out how to make a double-condition to check if you have collected the orb, and then if you are touching the ground, and pushing the keyboard key to do the high jump.

I have pictures of both the player and the orb’s behaviors. I started adding blocks, but I’m not sure if I’m on the right path.Screen Shot 2016-05-20 at 4.32.38 PM
Screen Shot 2016-05-20 at 4.32.55 PM

Hey, It’s Preston from Twitter :slight_smile:

So for this you could just use a toggle switch to select between two values for a high and low power jump.

Here’s an example (up arrow to jump): http://flowlab.io/game/play/435021

This is sort of what I want, although I want it on a separate keyboard key. So up is regular jump any time (when touching the ground), but “V” is super jump after they collect the orb (and when they are on the ground)

Here is the game (and my mess of code because I was trying to do an add and subtract system to find when two conditions were true) http://flowlab.io/game/view/434764

If I understand you correctly, that’s just a minor tweak. You can use the up arrow as normal, and just have a switch that enables the “v” key when you collect the orb.

I have modified the example so that the “v” key will super jump once you collect the mushroom: http://flowlab.io/game/play/435021

Yes, thank you! That makes more sense now. Looking at that example helped. And yes, that is exactly what I was looking for! :smiley: