| Blockland Forums > Help |
| Eventing Help: How to make an activate counter? |
| (1/1) |
| Freek:
How do I set events for a brick to make it when you activate the brick, it counts upward on 4 print bricks. (0001 - 9999)? |
| Clone2:
Eventing Lessons Today's Lesson: Print Count Event Effect: The number on a brick increases/decreases. Events (Increases): onActivate | <NAMED BRICK> | increamentPrintCount | <Number that you want to increase the number by> Events (Decrease): onActivate | <NAMED BRICK> | decreamentPrintCount | <Number that you want to decrease the number by> Are there several digits? Event Effect: When the first digit overflows/underflows, the next digit rises/lowers. Events (Increase): onActivate | <NAMED BRICK> | increamentPrintCount | <Number that you want to increase the number by> onPrintCountOverflow | <NAMED BRICK> | increamentPrintCount | <Number that you want the next digit to increase by> Events (Decrease): onActivate | <NAMED BRICK> | decreamentPrintCount | <Number that you want the number to decrease by> onPrintCountUnderflow | <NAMED BRICK> | decreamentPrintCount | <Number that you want the next digit to decrease by> |
| Orthone:
--- Quote from: Clone2 on August 20, 2012, 03:55:47 PM ---onPrintCountOverflow | <NAMED BRICK> | increamentPrintCount | <Number that you want the next digit to onPrintCountUnderflow | <NAMED BRICK> | decreamentPrintCount | <Number that you want the next digit to decrease by> --- End quote --- And to make this clear, these events need to be on the actual Print block, and the "Named Brick" is the next digit. Increasing the 10ths place would increment the 100ths place, decrementing the 10ths place would decrement the 1s place. |
| Gen. Hothauser:
[ ] [ 0 ] [ 0 ] [ 0 ] [ 0 ] ^ \_____________/ Brick with Print bricks with event 0 event 1, except with different <NAMED BRICK> values. Eventing Lessons Today's Lesson: Print Count Event Effect: The number on a brick increases/decreases. Events (Increases): [0] onActivate | <Brick> | increamentPrintCount | <Number that you want to increase the number by> Events (Decrease): [0] onActivate | <Brick> | decreamentPrintCount | <Number that you want to decrease the number by> Are there several digits? Event Effect: When the first digit overflows/underflows, the next digit rises/lowers. Events (Increase): [0] onActivate | <Brick1> | increamentPrintCount | <Number that you want to increase the number by> [1]onPrintCountOverflow | <Brick2> | increamentPrintCount | <Number that you want the next digit to increase by> Events (Decrease): [0] onActivate | <Brick1> | decreamentPrintCount | <Number that you want the number to decrease by> [1] onPrintCountUnderflow | <Brick2> | decreamentPrintCount | <Number that you want the next digit to decrease by> |
| Gen. Hothauser:
--- Code: ---[ ] [ 0 ] [ 0 ] [ 0 ] [ 0 ] ^ \_____________/ Brick with Print bricks with event 1 event 2, except with different <NAMED BRICK> values. Eventing Lessons Today's Lesson: Print Count Event Effect: The number on a brick increases/decreases. Events (Increases): [1] onActivate | <Brick> | increamentPrintCount | <Number that you want to increase the number by> Events (Decrease): [1] onActivate | <Brick> | decreamentPrintCount | <Number that you want to decrease the number by> Are there several digits? Event Effect: When the first digit overflows/underflows, the next digit rises/lowers. Events (Increase): [1] onActivate | <Brick1> | increamentPrintCount | <Number that you want to increase the number by> [2]onPrintCountOverflow | <Brick2> | increamentPrintCount | <Number that you want the next digit to increase by> Events (Decrease): [1] onActivate | <Brick1> | decreamentPrintCount | <Number that you want the number to decrease by> [2] onPrintCountUnderflow | <Brick2> | decreamentPrintCount | <Number that you want the next digit to decrease by> --- End code --- Sorry about that, look at this one. |
| Navigation |
| Message Index |