a link to whd file in concern: http://dl.dropbox.com/u/3375468/Wandering%20tribe.hwd
and in case someone else is looking for handy way to share files publicly and privately too:
https://www.dropbox.com/referrals/NTMzNzU0Njg5
use this referral link to join for free, and both me and you will receive extra 250 Mb storage space.
If you open that Designer file, and go to "Final Question" - page.
Choose from there "Rec - Done" layer, and choose its "On click" menu, from there go to "custom code" and you will find:
Code: Select all
if RA>6 then %>5
if RA<7 then %>8
However, only first line works.
Idea is, that if there are too few answers (less than 7) right, then it would send you to "game over". If you get more than 6 right, it sends you to "game completed".
But only the top one works.
I also tried to do ti with structure of
Code: Select all
if RA>6
%>5
elseif RA<7
%>8
endif
1. So am i doing something wrong in here, or is there a bug in designer?
Second question is about Hollywoods compiled file.
One bit guru programmer once told me that i should use "switch" rather than "if".
That when "if" is used, it goes and looks through every "if" line, so if theres 100 "if" lines, it needs to go through them all.
But on the other hand switch simply creates pointer where it jumps depending on situation.
So in case of 100 "if" lines checked, it just looks the switch and jumps to right place right away.
2. So does Hollywood work this way too?
Im just asking so that if it is so, i start right from beginning using switches instead of sticking to my bad habbit of only using "if"s.