-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
specify animation sprite example? #30
Comments
I have a full project example, fully commented, showing this. You can find it at https://github.com/manbeardgames/monogame-aseprite-demo |
YOU ROCK!!! |
The 3.8 version should use the netstandard2.1 package automatically, so shouldn't be seeing issues with NET6. Can you send me some info so I can try to reproduce this.
Let me look into this and I'll reply back soon |
Hi Here is all info. I just opened the solution file and have changed it to .NET 6.0. Nothing else changed. dotnet --list-sdks
|
No problems using .NET 6 here. AsepriteDocumentImporter. This is related to MGCB - no? Have you added the .dll reference. Like in my Content.mgcb => #-------------------------------- References --------------------------------# /reference:...............nuget\packages\monogame.extended.content.pipeline\3.8.0\tools\MonoGame.Extended.Content.Pipeline.dll |
That must be it! in the editor, there is a reference but it points to something that doesn't exist. If you have made a VS2022 solution file using CLI in monogame, are packages installed somewhere else maybe? |
The nuget folder is somewhere under your Windows folder. Do a search. The path should be the same as mine from nuget/packages onwards. Follow this guide: |
Thx! I added it and everything is working :) |
Hi I have a question about the example. private bool KeyPressed(Keys key) Why you need to check the _prevKeyState to know which key is pressed? |
Checking the previous state here allows you to see if a key is pressed once versus being held down. If you only check the current state each frame while a key is down, then it returns true for every frame |
Also, to add, that specific method isn't something specific to the library. It's just general key/button state checking for the example project. |
Original issue was resolved. For general questions, please use our discord |
Hello
I first used this code for animations in monogame but now moved to aseprite
https://www.monogameextended.net/docs/features/animations/animations
Can you give me a code example on how to do display the sprites in Update() function there (for key movements and associated sprite) but by using monogame.aseprite code?
I can't find how to do it
Thank you
The text was updated successfully, but these errors were encountered: