what doeas mean geatcount()-1
by hamed · in Game Design and Creative Issues · 02/08/2012 (11:20 pm) · 2 replies
hi, pardon me but im new in scripting so i dont underestand the meaning of this method
getcount()-1 in whackamole tut, and i dont know whats the differences beetween getcount(-1) with the getcount()-1
would anybody help me with this
and i will be glad if someone tell me where can i find the tfb functions and method help ?
thanks a lot
getcount()-1 in whackamole tut, and i dont know whats the differences beetween getcount(-1) with the getcount()-1
would anybody help me with this
and i will be glad if someone tell me where can i find the tfb functions and method help ?
thanks a lot
About the author
the great costly games, but the only purpose is killing, and the only amuse but why we just should kill to be satisfied,why the games should not change ? great drama in the games ? maybe today , is the time to change from bullets to flowers
Torque Owner Richard Ranft
Roostertail Games
%someGroup.getCount();
This will tell you how many items are contained within the group or container.
%someGroup.getCount() - 1;
will give you a number that is equal to the number of items in %someGroup, minus one. This is because most groups count items starting with the first at 0 instead of 1. So you would walk through the group and touch each item starting at item 0 and ending at the item count - 1.