PDA

View Full Version : Please Help! Keeping Score with multiple items


micaelayars
12-08-2013, 06:08 PM
Hello everyone. Basically I am making a game where A plane flies through multiple circles and keeps score based on which/how many rings you fly through. My problem is that I cannot figure out how to keep score for multiple items. I want the score to go up once when i fly through a ring and then go up again when I fly through another. I hope I explained well enough and I really appreciate any help that is offered. Thank you in advance!

MrMoke
12-09-2013, 12:29 PM
First of all you need to create either an object array or list, and add your ring objects. Then add an event to an infinite method that checks for distance to items in the list.
Things to Consider:
1. If you stop at ground zero of a specific object, will the counter skyrocket or wait until you leave the object before allowing another pop for that object?
2. Is each object counted and displayed separately, or as one total count?
3. Is there a countdown timer, or is the game infinite length?

micaelayars
12-09-2013, 01:20 PM
First of all you need to create either an object array or list, and add your ring objects. Then add an event to an infinite method that checks for distance to items in the list.
Things to Consider:
1. If you stop at ground zero of a specific object, will the counter skyrocket or wait until you leave the object before allowing another pop for that object?
2. Is each object counted and displayed separately, or as one total count?
3. Is there a countdown timer, or is the game infinite length?

Thank you very much. I was able to get it to work well enough for this project :). Thank you!