Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | daviewales |
Is it possible to setup Godot so that sprites will automatically wrap around, like in the game Asteroids?
In Asteroids, as a sprite exits the top of the screen it appears at the bottom and similarly for the left and right. Specifically, the part of the sprite which has exited the top appears immediately at the bottom. e.g. It’s the view which is wrapped, rather than the sprite itself.
Is this possible in Godot?
Example:
Frame 1:
|-----------------|
| O |
| / \ |
| / \ |
| |
| |
|-----------------|
Frame 2:
|-----------------|
| / \ |
| / \ |
| |
| |
| O |
|-----------------|
Frame 3:
|-----------------|
| / \ |
| |
| |
| O |
| / \ |
|-----------------|
Frame 4:
|-----------------|
| |
| |
| O |
| / \ |
| / \ |
|-----------------|