Deactivate all other tags when one is activate
So basically, I have a big cube that the player character walks around on that is covered in tags. When the player holds the x button a follower is activated and he sticks to the nearest tag and then can move the cube around in different directions. The problem is that when the cube starts moving, the puppet shifts around a bit and can sometimes end up stuck to different tags than the original one that was activated.
What I'd like to do is turn off all the other tags as soon as one of them is activated and turn them all back on once the button is released. Can anyone help?
-
You could probably use a selector for this. Connect each tag to its own selector output. When the tag is attached to, send a signal to its input in the selector; this will activate that tag and all others will be off.
And while not attached at all, you can turn on all the tags. -
Use an Exclusive Gate. You can dissect this to see how I did it.
https://indreams.me/scene/ZNfywvHAdkg -
See this Thread for more detail/explanation:
https://feedback.indreams.me/forums/917434-dreams-how-do-i/suggestions/36509896-use-an-exclusive-gate
請登入寫評論。