13 years, 9 months ago
Highlights
13 years, 9 months ago
13 years, 9 months ago
I do one thing it runs fine. I try it again, it crashes. what's happening? I am trying to use for the first time a finite state machine in my game. The whole reason of making th…
13 years, 9 months ago
I am completing some beginner projects with c++ and SDL and I've read most of the lazy foo and sdltutorials. Up until now I used "frame independent movement" (as one of the tuto…
13 years, 9 months ago
I am in the process of making a classic snake game but I have a problem with the movement. If the snake goes up it normally won't react if you press down. But if it goes up…
13 years, 10 months ago
Latest Activity
See all in DiscussionsA pattern that I frequently use is to have my state->update() method return a shared_ptr to the state the game …
13 years, 9 months ago
I understand the problem now, thank you. The call to the function was this: CStateManager::change_state(this, nextState); How can I modify …
13 years, 9 months ago
You have a scope problem. The value of your pointer, cur_state, being an argument, only exists within this function, and …
13 years, 9 months ago