Replies: 1 comment 2 replies
-
Hello @Clecius, thank you for trying the nCine and well done with your project! 💪🏻 I see the issue in your Jumping Sprites video and it seems quite weird. I don't remember ever having issues with I would like to understand if the issue is caused by poor performance (but I doubt it with the number of sprites I see on screen) or by some game logic issue. To better understand if it's a matter of performance you can do a couple things:
If you don't mind, you can also send the source code to me and I will have a look. For a more precise way of measuring the time passed, you can use the For the glitch on the ship shield, I would say it is caused by missing padding pixels between the elements of your spritesheet. You are using a texture atlas for the shield, right? Don't hesitate to ask if you need more help and consider joining our Discord server. 👍🏻 |
Beta Was this translation helpful? Give feedback.
-
Hello,
In first, compliments for nCine, as far I can see, a good library to create games. =)
I started to create a simple game of space shooter, to try the library.
Space Shooter
I like the library proposal, like a programmer I prefer to PROGRAM my game, not to click and drag on some mumbo jumbo editor that permits some pieces of code.
But I'm having some issues with 'Application Interval' while using VSync activated.
When there's a little more 'Animated Sprites' on the scene they tend to "jump", but this does not occur when VSync is off.
Another issue occurs by the fact that I'm using the 'Application Interval' to count time within the game; to match the weapons shots with the animations, for example. When I turn off VSync the float value of application interval becomes so dirisory that causes the well-known float point error.
Jumping Sprites
Any tips for that?
Currently I'm trying to implement an application interval using a 'long' value with nanoseconds.
There's also a little glitch that appears intermittently on some textures on animations, as can be observed on top of the shield of the main ship on video.
I'm developing on a Debian 11 with GCC 10.2.1.
Beta Was this translation helpful? Give feedback.
All reactions