frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Register

Make a Door teleport player when Key pressed...

Okay so I am attempting to make a door, that when pressing a key will teleport the player to a (Preferably changeable) location.

https://flowlab.io/game/view/750821

The Plan...

Comments

  • Different location as in a different level or just randomly somewhere in the current level?
    Like, are you trying to make them go in the house or just magically appear in the sky or on a hill somewhere?
  • If you go on the Game, there is a room above it, I want it to go in there...
  • Give this a try. It acts as an "and gate" by adding E=1 and Proximity Y door=1 to make 2 and set position grid x/y. Walk away from Y on the door and X will activate a timer that immediately sets door Y to 0. Letting go of E sets E to 0. 0+1 will never equal 2, so the filter only works in front of the door with E pressed.



    {"behavior":{"nodes":[{"startVal":0,"x":-1170,"id":"99d4f58033ae2040","name":"Number","y":224,"tag":null,"inputCount":3,"group":"","behaviorType":"logic.logic.Value","outputCount":1},{"startVal":1,"x":-1260,"id":"99d34185818ef345","name":"Number","y":-128,"tag":"","inputCount":3,"group":"","behaviorType":"logic.logic.Value","outputCount":1},{"startVal":-23,"x":-990,"id":"99d2d569cd536b43","name":"Number","y":32,"tag":"","inputCount":3,"group":"","behaviorType":"logic.logic.Value","outputCount":1},{"startVal":0,"x":-1260,"id":"99d5fdc3f1f09e41","name":"Number","y":-224,"tag":null,"inputCount":3,"group":"","behaviorType":"logic.logic.Value","outputCount":1},{"x":-1530,"id":"99d23ede30df4740","keyCode":69,"repeats":false,"name":"Keyboard","y":0,"inputCount":0,"group":"","delay":0,"behaviorType":"logic.triggers.Keyboard","outputCount":2},{"x":-1530,"nearestOnly":false,"y":-96,"group":"","name":"Proximity","once":false,"threshold":8,"targetEntityId":0,"inputCount":0,"id":"99d16227233fb648","delay":0,"behaviorType":"logic.triggers.Proximity","outputCount":2,"targetClassId":3456335},{"x":-1530,"id":"99d5e35a48d59749","group":"","name":"Timer","y":-192,"count":1,"inputCount":3,"delay":1,"behaviorType":"logic.triggers.Timer","outputCount":1},{"startVal":0,"x":-1260,"id":"99d3b0e0e47e414f","name":"Number","y":64,"tag":"","inputCount":3,"group":"","behaviorType":"logic.logic.Value","outputCount":1},{"x":-990,"id":"99d47fb99b016449","name":"Filter","mode":"equal to","y":224,"inputCount":2,"group":"","gateVal":2,"behaviorType":"logic.logic.Filter","outputCount":2},{"startVal":45,"x":-990,"id":"99d2d4afb06e5045","name":"Number","y":-96,"tag":"","inputCount":3,"group":"","behaviorType":"logic.logic.Value","outputCount":1},{"startVal":1,"x":-1260,"id":"99d36df6cad09a4d","name":"Number","y":-32,"tag":"","inputCount":3,"group":"","behaviorType":"logic.logic.Value","outputCount":1},{"x":-1350,"expression":"A+B","default1":0,"y":224,"group":"","name":"Expression","tag":"","inputCount":3,"id":"99d36338fc790b46","behaviorType":"logic.logic.Expression","outputCount":1,"default0":0},{"x":-810,"id":"99d27329d651a443","pixelUnits":false,"name":"Position","y":-32,"inputCount":4,"group":"","behaviorType":"logic.properties.Position","outputCount":2,"resetVelocity":false}],"links":[{"input_id":"99d4f58033ae2040i0","output_id":"99d36338fc790b46o0"},{"input_id":"99d4f58033ae2040i1","output_id":"99d36338fc790b46o0"},{"input_id":"99d47fb99b016449i0","output_id":"99d4f58033ae2040o0"},{"input_id":"99d34185818ef345i1","output_id":"99d16227233fb648o1"},{"input_id":"99d36338fc790b46i0","output_id":"99d34185818ef345o0"},{"input_id":"99d36338fc790b46i2","output_id":"99d34185818ef345o0"},{"input_id":"99d2d569cd536b43i1","output_id":"99d47fb99b016449o0"},{"input_id":"99d27329d651a443i1","output_id":"99d2d569cd536b43o0"},{"input_id":"99d5fdc3f1f09e41i1","output_id":"99d5e35a48d59749o0"},{"input_id":"99d36338fc790b46i0","output_id":"99d5fdc3f1f09e41o0"},{"input_id":"99d36338fc790b46i2","output_id":"99d5fdc3f1f09e41o0"},{"input_id":"99d36df6cad09a4di1","output_id":"99d23ede30df4740o0"},{"input_id":"99d3b0e0e47e414fi1","output_id":"99d23ede30df4740o1"},{"input_id":"99d5e35a48d59749i1","output_id":"99d16227233fb648o0"},{"input_id":"99d5e35a48d59749i0","output_id":"99d16227233fb648o1"},{"input_id":"99d34185818ef345i1","output_id":"99d16227233fb648o1"},{"input_id":"99d5e35a48d59749i0","output_id":"99d16227233fb648o1"},{"input_id":"99d5e35a48d59749i1","output_id":"99d16227233fb648o0"},{"input_id":"99d5fdc3f1f09e41i1","output_id":"99d5e35a48d59749o0"},{"input_id":"99d3b0e0e47e414fi1","output_id":"99d23ede30df4740o1"},{"input_id":"99d36338fc790b46i1","output_id":"99d3b0e0e47e414fo0"},{"input_id":"99d36338fc790b46i2","output_id":"99d3b0e0e47e414fo0"},{"input_id":"99d2d4afb06e5045i1","output_id":"99d47fb99b016449o0"},{"input_id":"99d2d569cd536b43i1","output_id":"99d47fb99b016449o0"},{"input_id":"99d2d4afb06e5045i1","output_id":"99d47fb99b016449o0"},{"input_id":"99d27329d651a443i0","output_id":"99d2d4afb06e5045o0"},{"input_id":"99d36df6cad09a4di1","output_id":"99d23ede30df4740o0"},{"input_id":"99d36338fc790b46i1","output_id":"99d36df6cad09a4do0"},{"input_id":"99d36338fc790b46i2","output_id":"99d36df6cad09a4do0"},{"input_id":"99d36338fc790b46i0","output_id":"99d34185818ef345o0"},{"input_id":"99d36338fc790b46i0","output_id":"99d5fdc3f1f09e41o0"},{"input_id":"99d36338fc790b46i1","output_id":"99d36df6cad09a4do0"},{"input_id":"99d36338fc790b46i1","output_id":"99d3b0e0e47e414fo0"},{"input_id":"99d36338fc790b46i2","output_id":"99d3b0e0e47e414fo0"},{"input_id":"99d36338fc790b46i2","output_id":"99d36df6cad09a4do0"},{"input_id":"99d36338fc790b46i2","output_id":"99d34185818ef345o0"},{"input_id":"99d36338fc790b46i2","output_id":"99d5fdc3f1f09e41o0"},{"input_id":"99d27329d651a443i0","output_id":"99d2d4afb06e5045o0"},{"input_id":"99d27329d651a443i1","output_id":"99d2d569cd536b43o0"}],"v":"2"}}

  • Am I adding this to the door or Player?
  • Nvm, Thank you this really helped!
Sign In or Register to comment.

flowlab.io

| make games in your browser
@ 2017 Flowlab.io, All rights reserved.

Contact us

Get In Touch