How do i make the player switch characters with different abilites and different sprite

Im trying to make the player switch Sprites by pressing E. But i dont know how.
.

1 Like

Toggling (Or router idk)
It doesnt take a new person to figure out how toggle works btw

Switches. Switches solve 90% of the problems on the Help Forums.

1 Like

Or you could just spawn a different character in your position and delete the old one. If you need more help just @ me and I’m always happy to help. :llama:

Yes, but each character has code. Do you know how to summon a character with code?
Im trying to make each character have an ability.

1 Like

Sure I send a screenshot in a sec, I need to build an example for it.

k, thx CodeAlpaca (trying to make it send)

1 Like


That’s one way, it would need to be expanded depending on how many abilities you have.


This is another way

Heres the Importables of both

Switching Characters

{“data”:{“behavior”:{“v”:“2”,“nodes”:[{“inputCount”:0,“outputCount”:0,“name”:“Switching Characters”,“behaviorType”:“logic.NodeGroup”,“x”:-540,“y”:64,“group”:"",“id”:“9eb4de1bf0e2934b”,“isMenuItem”:false},{“inputCount”:0,“outputCount”:2,“name”:“Keyboard”,“behaviorType”:“logic.triggers.Keyboard”,“x”:-180,“y”:192,“group”:“9eb4de1bf0e2934b”,“id”:“9eb3c2d6b2da6041”,“keyCode”:69},{“inputCount”:2,“outputCount”:2,“name”:“Toggle”,“behaviorType”:“logic.logic.FlipFlop”,“x”:0,“y”:192,“group”:“9eb4de1bf0e2934b”,“id”:“9eb498e3d520d04a”,“loop”:true,“initialState”:0},{“inputCount”:3,“outputCount”:1,“name”:“Switch”,“behaviorType”:“logic.logic.Switch”,“x”:180,“y”:96,“group”:“9eb4de1bf0e2934b”,“id”:“9eb4b4a1ff52af48”,"_startVal":1,“dataType”:2},{“inputCount”:3,“outputCount”:1,“name”:“Switch”,“behaviorType”:“logic.logic.Switch”,“x”:180,“y”:256,“group”:“9eb4de1bf0e2934b”,“id”:“9eb52957bc4c7f4c”,"_startVal":0,“dataType”:2},{“inputCount”:3,“outputCount”:2,“name”:“Animation”,“behaviorType”:“logic.properties.Animation”,“x”:360,“y”:256,“group”:“9eb4de1bf0e2934b”,“id”:“9eb604ddfb8e1641”,“notes”:“Your Sprite”,“n_o”:1,“priority”:0},{“inputCount”:3,“outputCount”:2,“name”:“Animation”,“behaviorType”:“logic.properties.Animation”,“x”:360,“y”:96,“group”:“9eb4de1bf0e2934b”,“id”:“9eb605ec72701a4e”,“notes”:“Your other sprite”,“n_o”:1,“priority”:0},{“inputCount”:0,“outputCount”:2,“name”:“Keyboard”,“behaviorType”:“logic.triggers.Keyboard”,“x”:-180,“y”:384,“group”:“9eb4de1bf0e2934b”,“id”:“9eb6bb9a0a6d0c4f”,“keyCode”:32},{“inputCount”:2,“outputCount”:1,“name”:“Emitter”,“behaviorType”:“logic.components.Emitter”,“x”:180,“y”:384,“group”:“9eb4de1bf0e2934b”,“id”:“9eb6f362ed7bde48”,“notes”:“Shoot Fireball or whatever”,“n_o”:1,“entityClassId”:0,“maxAge”:10,“force”:2,“rotate”:false,“angle”:0,“independent”:false},{“inputCount”:3,“outputCount”:1,“name”:“Switch”,“behaviorType”:“logic.logic.Switch”,“x”:0,“y”:384,“group”:“9eb4de1bf0e2934b”,“id”:“9eb7134bf7cd6d4a”,"_startVal":0,“dataType”:2},{“inputCount”:0,“outputCount”:2,“name”:“Keyboard”,“behaviorType”:“logic.triggers.Keyboard”,“x”:-180,“y”:-32,“group”:“9eb4de1bf0e2934b”,“id”:“9eb7b3f35ba7704d”,“keyCode”:32},{“inputCount”:2,“outputCount”:1,“name”:“Emitter”,“behaviorType”:“logic.components.Emitter”,“x”:180,“y”:-32,“group”:“9eb4de1bf0e2934b”,“id”:“9eb7b3f41c8b5b41”,“notes”:“Shoot Lightning or whatever”,“n_o”:1,“entityClassId”:0,“maxAge”:10,“force”:2,“rotate”:false,“angle”:0,“independent”:false},{“inputCount”:3,“outputCount”:1,“name”:“Switch”,“behaviorType”:“logic.logic.Switch”,“x”:0,“y”:-32,“group”:“9eb4de1bf0e2934b”,“id”:“9eb7b3f418cbdc4e”,"_startVal":1,“dataType”:2},{“inputCount”:0,“outputCount”:0,“name”:“Switching Characters V.2”,“behaviorType”:“logic.NodeGroup”,“x”:-360,“y”:64,“group”:"",“id”:“9eb92d84a75b4647”,“isMenuItem”:false},{“inputCount”:0,“outputCount”:2,“name”:“Keyboard”,“behaviorType”:“logic.triggers.Keyboard”,“x”:-450,“y”:-32,“group”:“9eb92d84a75b4647”,“id”:“9eb963c5e991084d”,“keyCode”:69},{“inputCount”:1,“outputCount”:1,“name”:“Extractor”,“behaviorType”:“logic.properties.Extractor”,“x”:-270,“y”:0,“group”:“9eb92d84a75b4647”,“id”:“9eb98242d5840a4a”,“targetId”:0,“prop”:“y”},{“inputCount”:1,“outputCount”:1,“name”:“Extractor”,“behaviorType”:“logic.properties.Extractor”,“x”:-270,“y”:-96,“group”:“9eb92d84a75b4647”,“id”:“9eb982b9efcbb148”,“targetId”:0,“prop”:“x”},{“delay”:10,“count”:1,“version”:2,“inputCount”:3,“outputCount”:1,“name”:“Timer”,“behaviorType”:“logic.triggers.Timer”,“x”:-270,“y”:128,“group”:“9eb92d84a75b4647”,“id”:“9eb9c35375047044”,“notes”:“delay is set to 0”,“n_o”:1},{“inputCount”:3,“outputCount”:1,“name”:“Spawn”,“behaviorType”:“logic.components.Spawn2”,“x”:-90,“y”:-32,“group”:“9eb92d84a75b4647”,“id”:“9eba1277ca040749”,“notes”:“Spawn Character with different abilites”,“n_o”:1,“entityClassId”:0,“spawnX”:0,“spawnY”:0},{“inputCount”:1,“outputCount”:1,“name”:“Destroyer”,“behaviorType”:“logic.components.Destroyer”,“x”:90,“y”:-32,“group”:“9eb92d84a75b4647”,“id”:“9eba76f5e0bb934d”}],“links”:[{“input_id”:“9eb498e3d520d04ai0”,“output_id”:“9eb3c2d6b2da6041o0”},{“input_id”:“9eb498e3d520d04ai1”,“output_id”:“9eb3c2d6b2da6041o0”},{“input_id”:“9eb7b3f418cbdc4ei1”,“output_id”:“9eb498e3d520d04ao0”},{“input_id”:“9eb4b4a1ff52af48i1”,“output_id”:“9eb498e3d520d04ao0”},{“input_id”:“9eb52957bc4c7f4ci0”,“output_id”:“9eb498e3d520d04ao0”},{“input_id”:“9eb7134bf7cd6d4ai0”,“output_id”:“9eb498e3d520d04ao0”},{“input_id”:“9eb7b3f418cbdc4ei0”,“output_id”:“9eb498e3d520d04ao1”},{“input_id”:“9eb4b4a1ff52af48i0”,“output_id”:“9eb498e3d520d04ao1”},{“input_id”:“9eb52957bc4c7f4ci1”,“output_id”:“9eb498e3d520d04ao1”},{“input_id”:“9eb7134bf7cd6d4ai1”,“output_id”:“9eb498e3d520d04ao1”},{“input_id”:“9eb605ec72701a4ei0”,“output_id”:“9eb4b4a1ff52af48o0”},{“input_id”:“9eb604ddfb8e1641i0”,“output_id”:“9eb52957bc4c7f4co0”},{“input_id”:“9eb7134bf7cd6d4ai2”,“output_id”:“9eb6bb9a0a6d0c4fo0”},{“input_id”:“9eb6f362ed7bde48i0”,“output_id”:“9eb7134bf7cd6d4ao0”},{“input_id”:“9eb7b3f418cbdc4ei2”,“output_id”:“9eb7b3f35ba7704do0”},{“input_id”:“9eb7b3f41c8b5b41i0”,“output_id”:“9eb7b3f418cbdc4eo0”},{“input_id”:“9eb982b9efcbb148i0”,“output_id”:“9eb963c5e991084do0”},{“input_id”:“9eb98242d5840a4ai0”,“output_id”:“9eb963c5e991084do0”},{“input_id”:“9eb9c35375047044i0”,“output_id”:“9eb963c5e991084do0”},{“input_id”:“9eba1277ca040749i1”,“output_id”:“9eb98242d5840a4ao0”},{“input_id”:“9eba1277ca040749i0”,“output_id”:“9eb982b9efcbb148o0”},{“input_id”:“9eba1277ca040749i2”,“output_id”:“9eb9c35375047044o0”},{“input_id”:“9eba76f5e0bb934di0”,“output_id”:“9eba1277ca040749o0”}]}}}

If you need anything else just ask and I’ll come

Cool, thanks! eeeeee

1 Like