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...
Where 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
That was the code narrowed down, do you want me to add more?, here's an example hopefully this will explain it better
When player touches the point,it is supposed to give something like this and then stop like this
instead it does this
point score=1 point score=2 point score=3 point score=4 point score=5 etc and keeps going up rapidly for as long as the player is within 10 pixels of the point.
Maybe this will help.
for (int k=0;k<POINTSNUMBER;k++)
printf(" point[%d] score=%d", k, playerA.score);
Hmm, Well I don't have a mouse up or down, got a motion, I put it in that and that sort of works, problem is it still goes has more than one score-point per point but only one at a time this time. Is there a way to disable the collision when the point is hit once?
I am working creating a fully encapsulated, homogeneous singly linked data structure. The Listing class and SinglyLinkedList class that are part of the whole application compile fine, but the problem ...