Drain your tofu and squeeze out as much excess liquid as possible. Cut the tofu into chunks and place in a large bowl with the cornflour. Mix to coat the tofu in the cornflour.
To a large saucepan on a medium to high heat add 1 teaspoon oil followed by the tofu coated in the cornflour. Fry for around 5-10 minutes (turning half way through), until the tofu starts to crisp up. Remove from the pan and set aside.
To the same pan add another teaspoon of oil followed by the onion, garlic and ginger. Fry for 5 minutes until starting to soften and then add the pepper and babycorn and fry for another 5 minutes.
Add the Thai red curry paste and mix so that all of the vegetables are coated. Add the coconut milk, soy sauce, brown sugar, lime juice, paprika and chilli flakes. Mix well and then leave to simmer for 10 minutes.
Add the cooked tofu and leave to simmer for another 5 minutes.
Serve the curry with rice.