i've got this sentence %26amp; i really need to put it into
lingo form asap. Please help got a deadline on Friday 30th March at
6pm!!!!
on keyDown
if key is wrong deduct a point etc (i.e key not eqaul to
letter)
else my_count = my_count + 1 -if my_count%26gt; 15 then stop
letter = my_source.char[random(Ltot)]
sprite(my_count + 10).member = letter
sprite(my_count + 10).visible = TRUE
the_score = the_score + 5
member(''scoredisplay'').text= ''Score: '' %26amp; the_score
end if
end if
end
PLEASE HELP asap!!
Ani_KHelp - Code Translation - Help
In article %26lt;euh1ul$rfu$1@forums.macromedia.com%26gt;,
''Ani_K'' %26lt;webforumsuser@macromedia.com%26gt; wrote:
%26gt; on keyDown
%26gt; if key is wrong deduct a point etc (i.e key not eqaul to
letter)
%26gt; else my_count = my_count + 1 -if my_count%26gt; 15 then
stop
%26gt; letter = my_source.char[random(Ltot)]
%26gt; sprite(my_count + 10).member = letter
%26gt; sprite(my_count + 10).visible = TRUE
%26gt; the_score = the_score + 5
%26gt; member(''scoredisplay'').text= ''Score: '' %26amp; the_score
%26gt; end if
%26gt; end if
%26gt; end
Some lines look ready to go, here are some thoughts on the
more abstract
ones:
%26gt; if key is wrong deduct a point etc (i.e key not eqaul to
letter)
if the key %26lt;%26gt; ''a'' then
my_count = my_count - 1
else -- key was right (A expected in example)
my_count = my_count + 1
end if
if my_count%26gt; 15 then go to ''endGame'' -- marker without
keydown haodner
%26gt; letter = my_source.char[random(Ltot)]
%26gt; sprite(my_count + 10).member = letter
-- not sure what your going for there, do you have members
named ''L'',
''M'', ''N'' ...?
letter seems to not be used anywhere else, you could directly
select
from a list of member names:
myMems = [ ''ltrL'', ''ltrM'', ''ltrN'' ]
sprite(my_count + 10).member = getAt(myMems,
random(count(myMems))
Subscribe to:
Post Comments
(Atom)
No comments:
Post a Comment