13 years, 9 months ago
Highlights
13 years, 9 months ago
Another version someone posted on /r/gamedev: while(game_is_running) { handle_input_and_move_player(); //get vector vx = player.x - zombie.x; vy = player.y - zombie.y; //…
13 years, 9 months ago
I'm a complete newbie when it comes to game development and I'm catching up on my c++ (would consider myself below average in c++ programming), so I've been messing around with…
13 years, 9 months ago
While I also suggest you use a vector difference like Jutaris suggested (though sf::Vector2 doesn't have ANY functions to normalize), I think your original code's error is…
13 years, 9 months ago
13 years, 9 months ago
Latest Activity
See all in DiscussionsAnother version someone posted on /r/gamedev: while(game_is_running) { handle_input_and_move_player(); //get vector vx = player.x - zombie.x; vy = player.y …
13 years, 9 months ago
While I also suggest you use a vector difference like Jutaris suggested (though sf::Vector2 doesn't have ANY functions to normalize), I …
13 years, 9 months ago
So I attempted to do what you said and I had to make the speed the same for the player …
13 years, 9 months ago