nodemules / SuperPlatformerBros

1 stars 0 forks source link

provide ability to toggle triggered effects with block #42

Closed johngreedjr closed 6 years ago

johngreedjr commented 6 years ago

Right now the trigger blocks can make an event happen once but not toggle it. Provide both options.

brenthaertlein commented 6 years ago

This functionality is already supported by allow triggers to fire multiple times, however there is no implementation for unlimited uses (just a very large number, probably MAX_INTEGER).

I think this ticket should be used for fleshing this functionality out per our conversation.

Some of the feature improvements we talked about were:

brenthaertlein commented 6 years ago

https://answers.unity.com/questions/192895/hideshow-properties-dynamically-in-inspector.html

Make an issue that considers using this concept for when IsToggle is set by the editor thingy

brenthaertlein commented 6 years ago

Done Triggers can be fired unlimitedly, or respect a max fire count on the Trigger object side

Additionally, HideableContainer can start in a Show state where all the child GameObjects are shown instead of hidden by default.

brenthaertlein commented 6 years ago

A container or some other element for firing multiple Triggerables from a single Trigger, or a way to include multiple triggers on the Trigger component UI

will allow having one trigger toggle off multiple HideableContainers to emulate the effect that is lost by forcing all of the IHideable children to be explicitly hidden or shown with the changes in ea75ed1

brenthaertlein commented 6 years ago

Closing because the spirit of this issue is complete, moved the multi-trigger functionality to a new ticket.