What role did the end of colonialism play on states, particularly in Asia? Why have some transformations been violent, while others have been peaceful?

What role did the end of colonialism play on states, particularly in Asia? Why have some transformations been violent, while others have been peaceful?