In my code i have got when player touches point,it registers collision and prints out score in the console, the problem is that for some reason instead of just printing one
score-point per point (There is 10 points in the array) it continues to add score for as long as the player is colliding with said point, how do I limit it...
GamerXxX
0
Newbie Poster
Recommended Answers
Jump to PostI'm sorry, you have the wrong forum. I believe you were looking for the psychic friends forum.
Jump to PostPlease provide example
Jump to PostWhere is the code? How are we supposed to know whats the problem when there is no code. Also printf() sounds like C++ and you are making a GAME! This is a completely different forum SOFTWARE DEVELOPMENT --> C or SOFTWARE DEVELOPMENT --> GAME DEELOPMENT
Jump to PostWhat are the types for k and playerA.score, int?
All 16 Replies
Narue
5,707
Bad Cop
Team Colleague
template<>
37
Junior Poster
sergent
52
Posting Pro
GamerXxX
0
Newbie Poster
template<>
37
Junior Poster
GamerXxX
0
Newbie Poster
template<>
37
Junior Poster
GamerXxX
0
Newbie Poster
template<>
37
Junior Poster
GamerXxX
0
Newbie Poster
template<>
37
Junior Poster
GamerXxX
0
Newbie Poster
template<>
37
Junior Poster
GamerXxX
0
Newbie Poster
template<>
37
Junior Poster
GamerXxX
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.