Game Score
i trying make game score inserting value text field when each sprite clicked mouse.
my code looks follows:
on mousedown me
member("score tally").text = integer("score tally")
lvcurrentscore = lvcurrentscore + 100
lvcurrentscore = ("score tally")
end
it doesn't provide me errors when compile when click sprite places null in text field.
any appreciated thank you.
it's difficult understand code "score tally" is, assuming it's member name following might help:
on mousedown me lvcurrentscore = integer( member("score tally").text ) lvcurrentscore = lvcurrentscore + 100 member("score tally").text = string(lvcurrentscore) end
More discussions in Director Lingo
adobe
Comments
Post a Comment