Position Up & Down

When my sprite moves from side to side to up and down, do i create a send sprite up & down? Then do the UP & Down behavior?

Topdown behavior iS easy to do just look it up in the examples area

If not use this

{"data":{"behavior":{"v":"2","nodes":[{"inputCount":0,"outputCount":0,"name":"up down movement","behaviorType":"logic.NodeGroup","x":-90,"y":-16,"group":"","id":"5f8d99757f93e64b","isMenuItem":false},{"inputCount":3,"outputCount":3,"name":"Velocity","behaviorType":"logic.properties.Physics","x":630,"y":256,"group":"5f8d99757f93e64b","id":"5f8d99762c5d134d"},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":360,"y":448,"group":"5f8d99757f93e64b","id":"5f8d997647c26d41","startVal":-3,"tag":""},{"inputCount":0,"outputCount":2,"name":"Keyboard","behaviorType":"logic.triggers.Keyboard","x":90,"y":416,"group":"5f8d99757f93e64b","id":"5f8d9977e3b16245","keyCode":87,"repeats":true,"delay":0},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":360,"y":64,"group":"5f8d99757f93e64b","id":"5f8d9977d706d746","startVal":3,"tag":""},{"inputCount":0,"outputCount":2,"name":"Keyboard","behaviorType":"logic.triggers.Keyboard","x":90,"y":64,"group":"5f8d99757f93e64b","id":"5f8d997781027847","keyCode":68,"repeats":true,"delay":0},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":360,"y":160,"group":"5f8d99757f93e64b","id":"5f8d9977c4e94d4d","startVal":-3,"tag":""},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":360,"y":352,"group":"5f8d99757f93e64b","id":"5f8d9977acc19744","startVal":3,"tag":""},{"inputCount":0,"outputCount":2,"name":"Keyboard","behaviorType":"logic.triggers.Keyboard","x":90,"y":320,"group":"5f8d99757f93e64b","id":"5f8d99779bda6a4a","keyCode":83,"repeats":true,"delay":0},{"inputCount":0,"outputCount":2,"name":"Keyboard","behaviorType":"logic.triggers.Keyboard","x":90,"y":160,"group":"5f8d99757f93e64b","id":"5f8d99770892f248","keyCode":65,"repeats":true,"delay":0},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":360,"y":256,"group":"5f8d99757f93e64b","id":"5f8d9977f64ff74f","startVal":0,"tag":null}],"links":[{"input_id":"5f8d99762c5d134di1","output_id":"5f8d997647c26d41o0"},{"input_id":"5f8d997647c26d41i1","output_id":"5f8d9977e3b16245o0"},{"input_id":"5f8d9977f64ff74fi1","output_id":"5f8d9977e3b16245o1"},{"input_id":"5f8d99762c5d134di0","output_id":"5f8d9977d706d746o0"},{"input_id":"5f8d9977d706d746i1","output_id":"5f8d997781027847o0"},{"input_id":"5f8d9977f64ff74fi1","output_id":"5f8d997781027847o1"},{"input_id":"5f8d99762c5d134di0","output_id":"5f8d9977c4e94d4do0"},{"input_id":"5f8d99762c5d134di1","output_id":"5f8d9977acc19744o0"},{"input_id":"5f8d9977acc19744i1","output_id":"5f8d99779bda6a4ao0"},{"input_id":"5f8d9977f64ff74fi1","output_id":"5f8d99779bda6a4ao1"},{"input_id":"5f8d9977c4e94d4di1","output_id":"5f8d99770892f248o0"},{"input_id":"5f8d9977f64ff74fi1","output_id":"5f8d99770892f248o1"},{"input_id":"5f8d99762c5d134di0","output_id":"5f8d9977f64ff74fo0"},{"input_id":"5f8d99762c5d134di1","output_id":"5f8d9977f64ff74fo0"}]}}}

I am new to this, what does it look lie in the component form?

I’m confused about what you mean by that

It’s the same thing where you have to copy it and paste it in the import box. I know you’re having trouble with that. I’m Deadly_Smile by the way, It’s my old username but I’m keeping Deadly_Smile in the discord, since the name is kind of important to me.

1 Like

I’m assuming you’re trying to learn top-down movement, which is similar to the standard platformer movement but instead of only being able to move on the X axis and occasional Y (jumping or the use of gravity), you can also move freely about the Y axis.
You can copy the code below and just paste it into the game editor to upload the behaviors. Although you’ll want to select “import” instead of just paste since pasting only keeps track of code that you copy from your own games and importing pastes code from outside sources.

{"data":{"behavior":{"v":"2","nodes":[{"inputCount":0,"outputCount":2,"name":"Keyboard","behaviorType":"logic.triggers.Keyboard","x":-450,"y":-16,"group":"","id":"5ffb1af09ded9747","keyCode":65,"repeats":true,"delay":0},{"inputCount":0,"outputCount":2,"name":"Keyboard","behaviorType":"logic.triggers.Keyboard","x":-450,"y":96,"group":"","id":"5ffb26f44c04a84c","keyCode":68,"repeats":true,"delay":0},{"inputCount":0,"outputCount":2,"name":"Keyboard","behaviorType":"logic.triggers.Keyboard","x":-450,"y":208,"group":"","id":"5ffb32e153979640","keyCode":83,"repeats":true,"delay":0},{"inputCount":0,"outputCount":2,"name":"Keyboard","behaviorType":"logic.triggers.Keyboard","x":-450,"y":320,"group":"","id":"5ffb3ae84ac10943","keyCode":87,"repeats":true,"delay":0},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":-270,"y":-16,"group":"","id":"5ffb65795418fa45","startVal":-4,"tag":"","roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":-270,"y":96,"group":"","id":"5ffb667ce7448245","startVal":4,"tag":"","roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":-270,"y":208,"group":"","id":"5ffb670d60159b4c","startVal":-4,"tag":"","roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":-270,"y":320,"group":"","id":"5ffb67a0f27ba842","startVal":4,"tag":"","roundMode":1},{"inputCount":2,"outputCount":1,"name":"Logic Gate","behaviorType":"logic.logic.Gate","x":-270,"y":-112,"group":"","id":"5ffb8050971dae4f","gateType":"AND"},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":-90,"y":-112,"group":"","id":"5ffb95b343517a4e","startVal":0,"roundMode":1},{"inputCount":2,"outputCount":1,"name":"Logic Gate","behaviorType":"logic.logic.Gate","x":-270,"y":432,"group":"","id":"5ffba3766de9f043","gateType":"AND"},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":-90,"y":432,"group":"","id":"5ffc1d1272cbf54e","startVal":0,"roundMode":1},{"inputCount":3,"outputCount":3,"name":"Velocity","behaviorType":"logic.properties.Physics","x":-90,"y":160,"group":"","id":"5ffc94d17627a94d"},{"inputCount":2,"outputCount":1,"name":"Logic Gate","behaviorType":"logic.logic.Gate","x":-270,"y":-208,"group":"","id":"6000ef52fc89e345","gateType":"NOR"},{"inputCount":2,"outputCount":1,"name":"Logic Gate","behaviorType":"logic.logic.Gate","x":-270,"y":528,"group":"","id":"600191126927094f","gateType":"NOR"}],"links":[{"input_id":"6000ef52fc89e345i0","output_id":"5ffb1af09ded9747o0"},{"input_id":"5ffb8050971dae4fi0","output_id":"5ffb1af09ded9747o0"},{"input_id":"5ffb65795418fa45i1","output_id":"5ffb1af09ded9747o0"},{"input_id":"6000ef52fc89e345i1","output_id":"5ffb26f44c04a84co0"},{"input_id":"5ffb8050971dae4fi1","output_id":"5ffb26f44c04a84co0"},{"input_id":"5ffb667ce7448245i1","output_id":"5ffb26f44c04a84co0"},{"input_id":"5ffb670d60159b4ci1","output_id":"5ffb32e153979640o0"},{"input_id":"5ffba3766de9f043i0","output_id":"5ffb32e153979640o0"},{"input_id":"600191126927094fi0","output_id":"5ffb32e153979640o0"},{"input_id":"5ffb67a0f27ba842i1","output_id":"5ffb3ae84ac10943o0"},{"input_id":"5ffba3766de9f043i1","output_id":"5ffb3ae84ac10943o0"},{"input_id":"600191126927094fi1","output_id":"5ffb3ae84ac10943o0"},{"input_id":"5ffb65795418fa45i1","output_id":"5ffb1af09ded9747o0"},{"input_id":"5ffc94d17627a94di0","output_id":"5ffb65795418fa45o0"},{"input_id":"5ffb667ce7448245i1","output_id":"5ffb26f44c04a84co0"},{"input_id":"5ffc94d17627a94di0","output_id":"5ffb667ce7448245o0"},{"input_id":"5ffb670d60159b4ci1","output_id":"5ffb32e153979640o0"},{"input_id":"5ffc94d17627a94di1","output_id":"5ffb670d60159b4co0"},{"input_id":"5ffb67a0f27ba842i1","output_id":"5ffb3ae84ac10943o0"},{"input_id":"5ffc94d17627a94di1","output_id":"5ffb67a0f27ba842o0"},{"input_id":"5ffb8050971dae4fi0","output_id":"5ffb1af09ded9747o0"},{"input_id":"5ffb8050971dae4fi1","output_id":"5ffb26f44c04a84co0"},{"input_id":"5ffb95b343517a4ei1","output_id":"5ffb8050971dae4fo0"},{"input_id":"5ffb95b343517a4ei1","output_id":"5ffb8050971dae4fo0"},{"input_id":"5ffb95b343517a4ei1","output_id":"6000ef52fc89e345o0"},{"input_id":"5ffc94d17627a94di0","output_id":"5ffb95b343517a4eo0"},{"input_id":"5ffba3766de9f043i0","output_id":"5ffb32e153979640o0"},{"input_id":"5ffba3766de9f043i1","output_id":"5ffb3ae84ac10943o0"},{"input_id":"5ffc1d1272cbf54ei1","output_id":"5ffba3766de9f043o0"},{"input_id":"5ffc1d1272cbf54ei1","output_id":"5ffba3766de9f043o0"},{"input_id":"5ffc1d1272cbf54ei1","output_id":"600191126927094fo0"},{"input_id":"5ffc94d17627a94di1","output_id":"5ffc1d1272cbf54eo0"},{"input_id":"5ffc94d17627a94di0","output_id":"5ffb65795418fa45o0"},{"input_id":"5ffc94d17627a94di0","output_id":"5ffb667ce7448245o0"},{"input_id":"5ffc94d17627a94di0","output_id":"5ffb95b343517a4eo0"},{"input_id":"5ffc94d17627a94di1","output_id":"5ffb670d60159b4co0"},{"input_id":"5ffc94d17627a94di1","output_id":"5ffb67a0f27ba842o0"},{"input_id":"5ffc94d17627a94di1","output_id":"5ffc1d1272cbf54eo0"},{"input_id":"6000ef52fc89e345i0","output_id":"5ffb1af09ded9747o0"},{"input_id":"6000ef52fc89e345i1","output_id":"5ffb26f44c04a84co0"},{"input_id":"5ffb95b343517a4ei1","output_id":"6000ef52fc89e345o0"},{"input_id":"600191126927094fi0","output_id":"5ffb32e153979640o0"},{"input_id":"600191126927094fi1","output_id":"5ffb3ae84ac10943o0"},{"input_id":"5ffc1d1272cbf54ei1","output_id":"600191126927094fo0"}]}}}

Below is an image of what the code will look like. I haven’t tested it yet since I just threw this example really quick into a testing game, but the keyboard triggers will be repeating, and the logic gates are there to help detect if both A and D or W and S keys are pressed down or up, so your character doesn’t float off screen or have two conflicting movements.

If you have any further questions regarding top-down movement, just let me or any active member know. I’m not entirely sure if this is what you’re asking for, but this should help.

Also, if anyone could test this, let me know if this is set up correctly. I tried setting it up based from memory, but I’m not sure if the number values are correct. I don’t have any games at the moment that could be used to test this since a lot of them are Sprite dumps or current projects (I also don’t have indie to make another game as well).

MannixBonsi and I were speaking in the help section in the discord and he seems to be having trouble with pasting Flow-Code into the import box since it would always show empty for him. I don’t know why this happens.

Yes I’m MannixBonsi u were speaking to me

When you open up the import box, you paste the code into the box.

Or was the import pop up not showing?

Screenshot 2024-05-09 220141

If you are seeing this, then you just need to paste the code into the box. I don’t know what keybinds you use to copy and paste text, but for windows it’s control + c to copy and control + v to paste. So, if you have the import box displayed like this, just use control + v to paste the code that you copied from either a game or from text as long as it’s from an outside source.

If you copy and paste code from within your own game, you don’t have to do this since it automatically saves the code into a clipboard within the game and just duplicates it, but copying the text or code from outside sources, needs you to manually paste it into the box that is displayed.

All i c is a blank box

Yeah he said in the discord if he CTRL+V’s then nothing happens, even when he clicks inside of the box.

That’s strange, what browser is he using? He could be using a browser or an older version of the browser that may not support some features on flowlab.

I don’t know, I never asked him.

I.m Using Microsoft Edge