Skip to main content
Share Your Experience: Take the 2024 Developer Survey

New answers tagged

0 votes

How to stop scenes from running before switching between them?

This isn't a design problem, it's an implementation problem. You solve it by simply pausing your timer. Instead of accumulating a delta time each frame, just accumulate 0.
Maximus Minimus's user avatar
0 votes

How to stop scenes from running before switching between them?

I think the simplest solution is to do what other engines (such as Godot) do. A scene is like any other object in the game, specifically. It has a definition (In OOP terms that would be the class). ...
DavidT's user avatar
  • 121
1 vote

How do I check if a window has focus in SDL2?

To answer the title question "How do I check if a window has focus in SDL2?": ...
idbrii's user avatar
  • 808
0 votes

Control SDL_Mix Sound Effect Volume

If you came here from a google search like I did, the following links are what you are looking for(previous answer is 404) https://wiki.libsdl.org/SDL2_mixer/Mix_Volume https://wiki.libsdl.org/...
Arron Dick's user avatar

Top 50 recent answers are included