T
T
Themidis Koudes2019-10-21 19:51:35
Python
Themidis Koudes, 2019-10-21 19:51:35

How to transition from one surface to another in Pygame?

The task is this: Surface1 is superimposed on Surface2, and it is necessary that after dragging an object from P1 to P2, it should be drawn, and not disappear.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dollar, 2019-10-21
@Femid

How are surfaces and objects related? Does the surface store information about what objects are on it? Actually, what to consider as an object - the developer decides. Even the surface itself can be identified with the object when it is depicted on it.
So there are no surfaces. You need to look at the logic of the game itself and improve it. The key word in the question is "drag and drop".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question