It only works in the editor? EDIT: It only works SOMETIMES in the editor?

Here’s the fill:

I’m trying to make my character teleport. It works pretty well in the editor and does mostly everything I intended it to.

Butttt, when I go out of the editor to play the game, it just completely stops. Huh? Yeah, just blank out stops. I don’t know what’s going on, but I watched the code and it seems to be an input problem.

A switch inputs perfectly well the value ‘1’ into a ‘start’ input on an animation… the rest of the sequence comes after the animation behavior outputs ‘done’. But it doesn’t. Heck, it doesn’t even PLAY!

Please help. I will probably not be able to supply a link, but maybe screenshots and the code.

Thanks,
-Ember.Y

image
This just doesn’t turn off?

Uhh, some things just aren’t outputting. -And yes, everything has a positive input. I have no idea what’s going on or why it only outputs/works like 50% of the time, ONLY in the editor.

It seems to work only before the player character moves a bit.

1 Like

Could you leave a link to the game?

2 Likes

Since you said you didn’t want to give a link, screenshots would be very helpful. Sounds like the type of thing you need the link to solve, but I’ll try with just screenshots

2 Likes

I could DM either of you the link, but here are some screen shots and samples:


Basically, I want, if the player right-clicks, he plays an animation and then teleports to the spot the cursor was in the game when the right click triggered. Then it plays another animation and the sequence is over. Then everything resets and the cooldown ends and enables the sequence again.

These two switches in particular are being funky.

{"data":{"behavior":{"v":"2","nodes":[{"inputCount":0,"outputCount":4,"name":"MouseClick","behaviorType":"logic.triggers.MouseClick","x":-360,"y":-32,"group":"4f1cdf8613161346","id":"4f1d1f52d62a534a","global":true,"rightClick":true,"skipAlpha":false,"version":2},{"inputCount":3,"outputCount":1,"name":"Switch","behaviorType":"logic.logic.Switch","x":-90,"y":-208,"group":"4f1cdf8613161346","id":"4f1da859a5f27349","_startVal":1,"dataType":2},{"delay":50,"count":1,"version":2,"inputCount":3,"outputCount":1,"name":"Timer","behaviorType":"logic.triggers.Timer","x":-90,"y":-96,"group":"4f1cdf8613161346","id":"4f1db59375667d40"},{"inputCount":3,"outputCount":3,"name":"Animation","behaviorType":"logic.properties.Animation","x":90,"y":-336,"group":"4f1cdf8613161346","id":"4f205e41c571a340","animationName":"Dash","priority":10},{"inputCount":1,"outputCount":2,"name":"MouseMove","behaviorType":"logic.triggers.MouseMove","x":-90,"y":176,"group":"4f1cdf8613161346","id":"4f21e0f53f6f3142","gameCoords":true},{"inputCount":4,"outputCount":2,"name":"Position","behaviorType":"logic.properties.Position","x":810,"y":-192,"group":"4f1cdf8613161346","id":"4f222ee671e00743","pixelUnits":true,"resetVelocity":false},{"inputCount":3,"outputCount":1,"name":"Switch","behaviorType":"logic.logic.Switch","x":540,"y":-304,"group":"4f1cdf8613161346","id":"4f22632872366241","_startVal":0,"dataType":2},{"inputCount":3,"outputCount":1,"name":"Switch","behaviorType":"logic.logic.Switch","x":540,"y":-96,"group":"4f1cdf8613161346","id":"4f2271fab575364b","_startVal":0,"dataType":2},{"inputCount":3,"outputCount":3,"name":"Animation","behaviorType":"logic.properties.Animation","x":450,"y":-432,"group":"4f1cdf8613161346","id":"4f28a6dc5c53564d","animationName":"Re-tp (dash)","priority":5},{"delay":1,"count":1,"version":2,"inputCount":3,"outputCount":1,"name":"Timer","behaviorType":"logic.triggers.Timer","x":270,"y":-384,"group":"4f1cdf8613161346","id":"4f28c09f3641974e"},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":270,"y":-224,"group":"4f1cdf8613161346","id":"4f2bcbb66ee13549","startVal":0,"roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":270,"y":-112,"group":"4f1cdf8613161346","id":"4f2bccf43363a74e","startVal":0,"roundMode":1},{"inputCount":3,"outputCount":1,"name":"Switch","behaviorType":"logic.logic.Switch","x":90,"y":48,"group":"4f1cdf8613161346","id":"4f2bf82665823247","_startVal":0,"dataType":2},{"inputCount":3,"outputCount":1,"name":"Switch","behaviorType":"logic.logic.Switch","x":90,"y":176,"group":"4f1cdf8613161346","id":"4f2bf8db24f30248","_startVal":0,"dataType":2}],"links":[{"input_id":"4f1da859a5f27349i2","output_id":"4f1d1f52d62a534ao0"},{"input_id":"4f2bf82665823247i1","output_id":"4f1d1f52d62a534ao0"},{"input_id":"4f21e0f53f6f3142i0","output_id":"4f1d1f52d62a534ao0"},{"input_id":"4f2bf8db24f30248i1","output_id":"4f1d1f52d62a534ao0"},{"input_id":"4f1da859a5f27349i0","output_id":"4f1da859a5f27349o0"},{"input_id":"4f1da859a5f27349i1","output_id":"4f1db59375667d40o0"},{"input_id":"4f1da859a5f27349i2","output_id":"4f1d1f52d62a534ao0"},{"input_id":"4f205e41c571a340i0","output_id":"4f1da859a5f27349o0"},{"input_id":"4f1da859a5f27349i0","output_id":"4f1da859a5f27349o0"},{"input_id":"4f1db59375667d40i0","output_id":"4f1da859a5f27349o0"},{"input_id":"4f1db59375667d40i0","output_id":"4f1da859a5f27349o0"},{"input_id":"4f1da859a5f27349i1","output_id":"4f1db59375667d40o0"},{"input_id":"4f205e41c571a340i0","output_id":"4f1da859a5f27349o0"},{"input_id":"4f28c09f3641974ei0","output_id":"4f205e41c571a340o1"},{"input_id":"4f22632872366241i1","output_id":"4f205e41c571a340o1"},{"input_id":"4f2bcbb66ee13549i1","output_id":"4f205e41c571a340o1"},{"input_id":"4f2bccf43363a74ei1","output_id":"4f205e41c571a340o1"},{"input_id":"4f2271fab575364bi1","output_id":"4f205e41c571a340o1"},{"input_id":"4f21e0f53f6f3142i0","output_id":"4f1d1f52d62a534ao0"},{"input_id":"4f2bf82665823247i2","output_id":"4f21e0f53f6f3142o0"},{"input_id":"4f2bf8db24f30248i2","output_id":"4f21e0f53f6f3142o1"},{"input_id":"4f222ee671e00743i0","output_id":"4f22632872366241o0"},{"input_id":"4f222ee671e00743i1","output_id":"4f2271fab575364bo0"},{"input_id":"4f22632872366241i0","output_id":"4f22632872366241o0"},{"input_id":"4f22632872366241i1","output_id":"4f205e41c571a340o1"},{"input_id":"4f22632872366241i2","output_id":"4f2bcbb66ee13549o0"},{"input_id":"4f22632872366241i0","output_id":"4f22632872366241o0"},{"input_id":"4f222ee671e00743i0","output_id":"4f22632872366241o0"},{"input_id":"4f2271fab575364bi0","output_id":"4f2271fab575364bo0"},{"input_id":"4f2271fab575364bi1","output_id":"4f205e41c571a340o1"},{"input_id":"4f2271fab575364bi2","output_id":"4f2bccf43363a74eo0"},{"input_id":"4f222ee671e00743i1","output_id":"4f2271fab575364bo0"},{"input_id":"4f2271fab575364bi0","output_id":"4f2271fab575364bo0"},{"input_id":"4f28a6dc5c53564di0","output_id":"4f28c09f3641974eo0"},{"input_id":"4f28c09f3641974ei0","output_id":"4f205e41c571a340o1"},{"input_id":"4f28a6dc5c53564di0","output_id":"4f28c09f3641974eo0"},{"input_id":"4f2bcbb66ee13549i0","output_id":"4f2bf82665823247o0"},{"input_id":"4f2bcbb66ee13549i1","output_id":"4f205e41c571a340o1"},{"input_id":"4f22632872366241i2","output_id":"4f2bcbb66ee13549o0"},{"input_id":"4f2bccf43363a74ei0","output_id":"4f2bf8db24f30248o0"},{"input_id":"4f2bccf43363a74ei1","output_id":"4f205e41c571a340o1"},{"input_id":"4f2271fab575364bi2","output_id":"4f2bccf43363a74eo0"},{"input_id":"4f2bf82665823247i0","output_id":"4f2bf82665823247o0"},{"input_id":"4f2bf82665823247i1","output_id":"4f1d1f52d62a534ao0"},{"input_id":"4f2bf82665823247i2","output_id":"4f21e0f53f6f3142o0"},{"input_id":"4f2bcbb66ee13549i0","output_id":"4f2bf82665823247o0"},{"input_id":"4f2bf82665823247i0","output_id":"4f2bf82665823247o0"},{"input_id":"4f2bf8db24f30248i0","output_id":"4f2bf8db24f30248o0"},{"input_id":"4f2bf8db24f30248i1","output_id":"4f1d1f52d62a534ao0"},{"input_id":"4f2bf8db24f30248i2","output_id":"4f21e0f53f6f3142o1"},{"input_id":"4f2bccf43363a74ei0","output_id":"4f2bf8db24f30248o0"},{"input_id":"4f2bf8db24f30248i0","output_id":"4f2bf8db24f30248o0"}]}}}
1 Like

I can look into it too, if you want.

1 Like

I’ll DM you the link on our thread, thanks!

1 Like