How do I make a path mover for my boss?

I am making a boss with my brother in this game Flowlab Game Creator - puzzles and platforms!, but it’s not moving around. I was thinking of it flying around in a crazy 8, as in moving in the path. Can I get any help from this?

1 Like

Hey @Retroman one way to move in a figure 8/infinity path is to just move the boss object around using a curve parametrization like the ones described here:

I used the lemniscate of Bernoulli (it was the nicer looking one) described there to make a small bundle that you can use in your game to move an object. The example is here:

and the bundle (it’s called Infinity) you can import is here:

{"data":{"behavior":{"v":"2","nodes":[{"inputCount":4,"outputCount":0,"name":"Infinity","behaviorType":"logic.NodeGroup","x":-90,"y":96,"group":"","id":"1138d4b40af51e48","notes":null,"n_o":null,"isMenuItem":false},{"inputCount":0,"outputCount":1,"name":"Always","behaviorType":"logic.triggers.Always","x":-630,"y":224,"group":"1138d4b40af51e48","id":"1128547c0dc98d4d","notes":null,"n_o":null},{"expression":"2 / (3 - Math.cos(2*A));","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":2,"version":2,"tag":"Scale","inputCount":3,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":0,"y":-160,"group":"1138d4b40af51e48","id":"1128d4dfbb25844a","notes":null,"n_o":null},{"expression":"A * (Math.sin(2*B) / 2) * C + D;","default0":0,"default1":0,"default2":100,"default3":0,"default4":0,"default5":0,"params":4,"version":2,"tag":"Y","inputCount":5,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":180,"y":96,"group":"1138d4b40af51e48","id":"11295df7569d944e","notes":null,"n_o":null},{"expression":"A * Math.cos(B) * C + D;","default0":0,"default1":0,"default2":100,"default3":0,"default4":0,"default5":0,"params":4,"version":2,"tag":"X","inputCount":5,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":180,"y":-32,"group":"1138d4b40af51e48","id":"11295f21ca38e547","notes":null,"n_o":null},{"inputCount":4,"outputCount":2,"name":"Position","behaviorType":"logic.properties.Position","x":360,"y":64,"group":"1138d4b40af51e48","id":"112b03aed13f2646","notes":null,"n_o":null,"pixelUnits":true,"resetVelocity":false},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":-270,"y":-160,"group":"1138d4b40af51e48","id":"112db98500d0a145","notes":null,"n_o":null,"startVal":0,"tag":"T","roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":-450,"y":-160,"group":"1138d4b40af51e48","id":"112fc72fa4801e4b","notes":null,"n_o":null,"startVal":0.1,"tag":"Step","roundMode":1},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-630,"y":-160,"group":"1138d4b40af51e48","id":"1139dffd5cb0104c","notes":null,"n_o":null,"portId":"1138d4b40af51e48i0","tag":"speed","dataType":2},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-630,"y":-64,"group":"1138d4b40af51e48","id":"113b3f4a16a50b48","notes":null,"n_o":null,"portId":"1138d4b40af51e48i1","tag":"size","dataType":2},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-630,"y":32,"group":"1138d4b40af51e48","id":"113d52d3c0933c45","notes":null,"n_o":null,"portId":"1138d4b40af51e48i2","tag":"x","dataType":2},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-630,"y":128,"group":"1138d4b40af51e48","id":"113de316be33d542","notes":null,"n_o":null,"portId":"1138d4b40af51e48i3","tag":"y","dataType":2}],"links":[{"input_id":"112fc72fa4801e4bi1","output_id":"1128547c0dc98d4do0"},{"input_id":"1128d4dfbb25844ai2","output_id":"1128547c0dc98d4do0"},{"input_id":"11295f21ca38e547i4","output_id":"1128547c0dc98d4do0"},{"input_id":"11295df7569d944ei4","output_id":"1128547c0dc98d4do0"},{"input_id":"11295f21ca38e547i0","output_id":"1128d4dfbb25844ao0"},{"input_id":"11295df7569d944ei0","output_id":"1128d4dfbb25844ao0"},{"input_id":"112b03aed13f2646i1","output_id":"11295df7569d944eo0"},{"input_id":"112b03aed13f2646i0","output_id":"11295f21ca38e547o0"},{"input_id":"1128d4dfbb25844ai0","output_id":"112db98500d0a145o0"},{"input_id":"11295f21ca38e547i1","output_id":"112db98500d0a145o0"},{"input_id":"11295df7569d944ei1","output_id":"112db98500d0a145o0"},{"input_id":"112db98500d0a145i2","output_id":"112fc72fa4801e4bo0"},{"input_id":"112fc72fa4801e4bi0","output_id":"1139dffd5cb0104co0"},{"input_id":"11295f21ca38e547i2","output_id":"113b3f4a16a50b48o0"},{"input_id":"11295df7569d944ei2","output_id":"113b3f4a16a50b48o0"},{"input_id":"11295f21ca38e547i3","output_id":"113d52d3c0933c45o0"},{"input_id":"11295df7569d944ei3","output_id":"113de316be33d542o0"}]}}}

Good luck on your game!

5 Likes

Thank you grazer, I appreciate it.

2 Likes