Need help and suggestions
by Nicole · in Torque 3D Beginner · 04/03/2014 (12:45 pm) · 1 replies
Hi there,
I am currently a student working on a project with my team members, I'm one of the beginner coders and I got a bit of mind blockage.
My team mate is asking me to code the interactions of the game to determine whether the player has found all of the clues that are within the game.
My other team mate is working on the user interaction on the coding when the player selects the object within the game and having cut scenes to go through it.
What I am asking is, are there any sort of ideas and suggestions to get me started and also provide examples? I tend to work better when there are examples that I could look at.
Many thanks,
I am currently a student working on a project with my team members, I'm one of the beginner coders and I got a bit of mind blockage.
My team mate is asking me to code the interactions of the game to determine whether the player has found all of the clues that are within the game.
My other team mate is working on the user interaction on the coding when the player selects the object within the game and having cut scenes to go through it.
What I am asking is, are there any sort of ideas and suggestions to get me started and also provide examples? I tend to work better when there are examples that I could look at.
Many thanks,
Paul Seyfarth
Rename it something like level_clues
Add all the clues in the level to that group.
Then add your script
You can get the number of objects in that group with level_clues.getCount();
you could create a variable and set it equal to that count. Then every time a clue is found subtract 1 from that variable. Once you hit 0 you will know all clues are found.