Hi, I am making a little game for the youth council in my town, but the only code I have ever written before that was on a Texas instruments calculator.
I already figured out quite a bit, but I need help to make a system to keep the score.
I need a piece of code that I can use in a symbol, which adds 1 to a number in the bottom in the stage every time the symbol is pushed.
roughly it would look like:
(beginning of the scene)
0 store to "a"
(in the actions for the symbol, I already have the trigger code, I just need the effect code)
("a"+1) store to "a"
and then the ability to display "a" in a text frame on stage
I also need to have code to trigger a frame jump after a certain time period (say 30 seconds)
I already figured out quite a bit, but I need help to make a system to keep the score.
I need a piece of code that I can use in a symbol, which adds 1 to a number in the bottom in the stage every time the symbol is pushed.
roughly it would look like:
(beginning of the scene)
0 store to "a"
(in the actions for the symbol, I already have the trigger code, I just need the effect code)
("a"+1) store to "a"
and then the ability to display "a" in a text frame on stage
I also need to have code to trigger a frame jump after a certain time period (say 30 seconds)