Add move_sprite_to usage example - #783
Open
Osaid2993 wants to merge 1 commit into
Open
Conversation
❌ Deploy Preview for splashkit failed.
|
kottochii
suggested changes
Jul 26, 2026
There was a problem hiding this comment.
I tested and it worked (the programs run as expected), however, as the player.png is not provided, the code itself cannot be just copied and pasted (which is the expectation for Usage Examples section). It should be somehow commented that the program expects the PNG file and where it is expected (in this case ./images/player.png), or the file should be provided to the viewer in another way.
Author
|
@kottochii I actually added a note to the PR description explaining that player.png is required, where to download it (Resources > Sprites), and that it should be placed in the Resources/images folder. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Splashkit Function:
move_sprite_toOverview of example functionality: This example shows how to use
move_sprite_toto move a sprite to the position selected by the user. When the user clicks anywhere inside the window, the sprite is moved to the mouse coordinates.Example Output:

Files Included
Usage Example Checks (READ CAREFULLY)