Help with switching between two different behaviors

So in this game, I want the player to switch between being a trash can and a recycle bin to catch both recyclables and trash by using the R button. However I do not know how to switch between trash and the recycle bin as they both have their own different sets of behaviors. How do I switch between the two?

1 Like

try this:
in the trash can behaviors, add a keyboard trigger for R and make its out connect to a destroyer block. connect the out of the destroyer block to an emit. make it emit the recycle bin and make sure it’s set to not destroy emit objects. do the same with the recycle bin behaviors, when you press r it destroys the recycle bin and emits the trash can.

1 Like

Or…
Routers.
You can connect the triggers of your behaviors to the IN of a router, set the router to increment, and connect the R keypress to the selct.

1 Like

I can make an example (distant sounds of The Thunderdome)

1 Like

Sorry for not responding earlier, I made this at 4 am. An example could be really helpful!

1 Like

THUNDERDOME ACTIVATED

might want to tell this guy what the thunderdome is…

1 Like

Well it’s just a game with a crap ton of examples in it :upside_down_face:

yeah i know what it is but send a link to this guy because he’s new

1 Like

It isn’t done yet, tho :upside_down_face:

ah ok

1 Like

@JalenThePSIKid, look inside Switchy’s code :3

(Btw, if it doesn’t automatically load you into a level then contact me and I’ll work it out)

1 Like

Gotcha, I’ll check it out.

1 Like

Oh yo that’s pretty cool I’ll try it out and see if I got it to work

1 Like

Yeah it works out just fine! Thanks!

1 Like

MWAHAHA NOW I HAVE 50 SOLUTIONS!!! :upside_down_face:

1 Like