Sorry if this seems insensitive or malicious, that wasn't the intent.
I would like to know why and how Europe/whites became so much more advanced than Africa even though one of the first major eras(?), the Egyptians, came from it.
I always wondered what the world would be like if it happened the other way round.
Sorry if this question has been asked before, I didnt find it
You might be interested in threads from the FAQ sections on "Why is Africa 'less developed'?" and “Racism and Slavery":
Why is Africa 'less developed'?
The answers in this thread correct the OP's assertion by pointing out various empires that developed (and collapsed) throughout Africa.
The respondents go into the fates of several medieval and early modern African Empires as well as the difficulties of African history (often in finding evidence).
Why did all of the other continents develop so much quicker than Africa?
This is a large thread that not only talks about the African experience with "development" but also has several commenters highlighting the situations in the Americas and Australia. /u/khosikulu's comment here is an excellent analysis of African geography in context with its "development" and other issues that are commonly cited when comparing African peoples to others.
Racism and European Imperialism
Europe had normal diplomatic relations with non-white nations before turning explosively racist to justify their actions against all others. What happened to cause this shift? - 22 comments, over 1 year old.
A flaired commenter in this thread provides a multi-comment long overview of the "flowering" of racism and scientific racism in the 18th and 19th centuries at the height of European imperialism.
What are some of the more notable (scientific) critiques of scientific racism - especially in the 19th century? - 3 comments, over 1 year old.
A flaired user's description of the opposition to scientific racism also serves to highlight the common racism of the day and its origins.
When did the concept of Race begin to emerge? - 25 comments, over 1 year old.
There are a few summaries of "milestones" of the development of racism from the Age of Exploration to Age of Imperialism with a related article linked in the topmost comment.
Did Racism Cause the Enslavement of Africans? - 2 comments, over 2 months old.
The commenters here summarize the matter without going into detail.
Do you think racism was the result of slavery? or whether africans were enslaved because of racism? - 7 comments, over 8 months old.
The commenters here go into detail on the genesis of racism in the US from the Thirteen Colonies to the Antebellum United States.
Why did Europeans enslave Africans instead of other Europeans? - 17 comments, over 2 months old.
The commenters here go into the difficulties involved in enslaving people in Europe to compare and contrast with the methods used in Africa as well as going into developing attitudes towards race in the Early Modern era.
"I don't think that ancient slavery is really comparable to the chattel slavery that we saw in the Americas." How did ancient slavery differ from the atlantic slave trade? - 91 comments, over 6 months old.
This thread is mostly about Roman slavery including how slaves were acquired, what they were used for, and what ethnicity/race they were and thus allowing comparison with the situations presented in the threads above.
How true is the claim that "racism created race", as opposed to the other way around? - 9 comments, over 6 months old.
This thread brings up and summarizes the a book with a contrary claim to the traditional narrative that modern racism primarily derives from the Early Modern era.