Author Topic: Print Count Events?  (Read 752 times)

Is there any guide to using them? I find them a bit confusing, and would like to understand them a little better for my current project.

If you are trying to use them as a counter, they go up to 9 then reset.

On Activate - Named Brick - IncreasePrintCount - 1
On Printcountoverflow - Named Brick 2 - IncreasePrintCount - 1

Clocks are also possible, but can require way too much time to event. The printcount events are usually only used for counters when entering lots, second timers, and how many times people clicked something.

Make a print brick, set its print to 0.

Events:
onActivate -> Self -> incrementPrintCount -> 1

This will add the number on the print brick by 1.

decrementPrintCount will subtract the number on the print brick.

setPrintCount will set the print count to whatever.

For input events:

onPrintCountOverflow will do an event when the counter goes past 9. This is useful for making counters with more than 2 digits, you'd just need to fiddle with the events to make it work.

For example...
onPrintCountOverflow -> Self -> Spawn Explosion -> Mini-Nuke
Will spawn a mini-nuke and destroy itself when it  goes over 9.

onPrintCountUnderFlow will do an event when the print count goes below 0.

Thanks guys. It's a lot simpler than I thought it would be.

Thanks for the help.