Quick explanations please

hey, I was wondering what the touch count attribute reads and what the % function is used for and how you use it.
Thanks,
Ryan
Thanks,
Ryan
Best Answer
-
theCodeMonsters Posts: 359
@theCodeMonsters
I know, let me explain that one a little better than lol. So the device can register up to 9 fingers on the screen at once. So the 5th finger I put on the screen's position can be used by going into devices->touches->touch 1.x and or y. The devices->touches->count is the number of fingers on the screen.
ok thanks, but I was wondering about the "Touch Count" attribute, not the touch position. Do you know?
Answers
the % is called the modulus operator and returns the left over part of the division. Example: 5%2 is 0.5.
ok thanks, but I was wondering about the "Touch Count" attribute, not the touch position. Do you know?
do you know of ay other "functions" you can enter into the expression editor? Stuff like
% .. ^ + - * /
You can view all the other functions in the expression editor here:
http://cookbook.gamesalad.com/definitions
Lol *sigh* i was asking if there were any others than those, not for an explanation, but thanks for the attempt. Anyway are there any other functions we can enter besides those?