call the function after the delay

call the function after the delay
0

#1
void Player::jump(float dt)
{
  ............
}

void HelloWorld::onkeypress(EventKeyboard::KeyCode keycode, Event *event)
{
	if (keycode == EventKeyboard::KeyCode::KEY_D)
	{
		(call the player's jump function after a delay )
	}
}

how do i call the function after the delay.many thank


#2

Did you look in our docs? https://docs.cocos2d-x.org/cocos2d-x/en/actions/sequences.html