I need help with a boss battle, please

I’m knee-deep in a school assignment about this game, and the deadline is creeping up like an impatient cat. I’m thinking about adding a boss battle to the end of my game, but my coding skills are more ‘cute kitten’ than ‘fierce lion.’ :smile:

If you’ve got any simple suggestions to spruce up my game, I’d really appreciate it! Take a peek at my project here: Game Link. And remember, it’s all in the spirit of learning, so feel free to drop some friendly tips!" It is due October 9th i think, so be quick!

8 Likes

One thing I’d recommend right off the bat is to make the camera focus on both players instead of just player one.

2 Likes

I tried to do that, but the game seems to have a mind of its own! I added the behavior, but it’s more loyal to the yellow dude than the green dude. Help! My game might be staging a character rebellion. :sweat_smile:

Also at the end can the like text desplay on the screen rather what i have done?

Also i am still figuring out how to do the boss battle, thank you so much for the tips!

What you could try to do is zoom out the camera depending on how far away the 2 players are.

2 Likes

I have a bundle for that, if you want.

2 Likes

Oh thank you very much, that would be very nice of you!

Tell me if you need extra help.

https://flowlab.io/games/play/2372804

1 Like

omg thank you so much, i love you, this is so cool, do i need to make it invisible now so when the people play they don’t see it, also how do i make the boss battle. U are so nice, i wish you the very best in life.

1 Like

The camera is abit too slow, the players beat the camera, they can see too much of the back area and less of the front, do you have any suggestions or do you know what i can do to fix it, thank you so much btw you are a lifesaver :smile:

1 Like

Because when the characters walk it just zooms out it becomes too zoomed out

Also how do you make a checkpoint because when i die i don’t wanna restart all the way from the beginning

In an old era (before the new era of Mortal Kombat 1) I made this fangame, and someone showed me how to make a two subject camera for it.

Maybe you could try that bundle.

1 Like


Delete the variable ‘C’ from the expressions marked (this is to change it to 2 player)

Then to change the screen width and length, you need to input that into the Inputs, just follow the instructions.

To make it invisible, just add an alpha = 0 like in that image above.

Then those two filters are just the min and max zoom.

1 Like

Thank you guys so much for all the help. When the players walk they can barley see what is in front of them, can u guys help with that, btw i like it not being invisible, thank u though!

1 Like

@Be_Happy here is your problem: The C is not deleted from the expressions.

I added a comment DELETE C over the expressions you need to delete c in.

1 Like

Oh! I did it, but it is still barely showing where the players are walking; they are too close to the edge of the screen. Is there a possible way to fix that, or do I just have to ignore it? My game is due on Monday, so I will try to multitask. I am going to try and watch YouTube videos about how to make a boss battle in flowlab while I wait for a text back about the camera. Sorry if I don’t reply fast.

1 Like

Here, delete the code in your camera object and paste this in:

{"data":{"behavior":{"v":"2","nodes":[{"inputCount":0,"outputCount":1,"name":"Once","behaviorType":"logic.triggers.Once","x":-90,"y":-480,"group":"","id":"eecb89ffc044af43","resetOnLevelStart":false},{"inputCount":2,"outputCount":2,"name":"Enabled","behaviorType":"logic.properties.Enabled","x":90,"y":-512,"group":"","id":"eecb89ff9b99a140"},{"inputCount":0,"outputCount":1,"name":"Camera","behaviorType":"logic.NodeGroup","x":-90,"y":-336,"group":"","id":"f3b1504685d6cc4c","isMenuItem":false},{"inputCount":0,"outputCount":1,"name":"Mailbox","behaviorType":"logic.components.Mailbox","x":-90,"y":-288,"group":"eecb89f8e5d9cb48","id":"eecb89f82804a447","msg":"X1"},{"inputCount":0,"outputCount":1,"name":"Mailbox","behaviorType":"logic.components.Mailbox","x":-90,"y":-192,"group":"eecb89f8e5d9cb48","id":"eecb89f80e1f5e43","msg":"X2"},{"inputCount":0,"outputCount":1,"name":"Mailbox","behaviorType":"logic.components.Mailbox","x":-90,"y":288,"group":"eecb89f8e5d9cb48","id":"eecb89f8d4a89042","msg":"Y1"},{"inputCount":0,"outputCount":1,"name":"Mailbox","behaviorType":"logic.components.Mailbox","x":-90,"y":384,"group":"eecb89f8e5d9cb48","id":"eecb89f88682ca4f","msg":"Y2"},{"inputCount":0,"outputCount":1,"name":"Always","behaviorType":"logic.triggers.Always","x":-90,"y":32,"group":"eecb89f8e5d9cb48","id":"eecb89fcb6b6a14f"},{"expression":"Math.max(A,B)","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":2,"version":2,"tag":"Max X","inputCount":3,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":180,"y":-96,"group":"eecb89f8e5d9cb48","id":"eecb89fc2b61a34c"},{"expression":"(A+B)/2","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":2,"version":2,"tag":"","inputCount":3,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":360,"y":-224,"group":"eecb89f8e5d9cb48","id":"eecb89fd6f041847"},{"inputCount":1,"outputCount":1,"name":"Extractor","behaviorType":"logic.properties.Extractor","x":540,"y":-160,"group":"eecb89f8e5d9cb48","id":"eecb89fde61dae43","targetId":0,"prop":"x","version":2},{"expression":"B+((A-B)*0.1)","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":2,"version":2,"tag":"","inputCount":3,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":720,"y":-224,"group":"eecb89f8e5d9cb48","id":"eecb89fe4505604d"},{"inputCount":4,"outputCount":2,"name":"Position","behaviorType":"logic.properties.Position","x":990,"y":128,"group":"eecb89f8e5d9cb48","id":"eecb89fe69481841","pixelUnits":true,"resetVelocity":false},{"expression":"Math.min(A,B)","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":2,"version":2,"tag":"Min Y","inputCount":3,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":180,"y":288,"group":"eecb89f8e5d9cb48","id":"eecb89fecaeb3c48"},{"expression":"Math.max(A,B)","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":2,"version":2,"tag":"Max Y","inputCount":3,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":180,"y":416,"group":"eecb89f8e5d9cb48","id":"eecb89feb2e5d744"},{"expression":"(A+B)/2","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":2,"version":2,"tag":"","inputCount":3,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":360,"y":448,"group":"eecb89f8e5d9cb48","id":"eecb89fe6c98434a"},{"inputCount":1,"outputCount":1,"name":"Extractor","behaviorType":"logic.properties.Extractor","x":540,"y":512,"group":"eecb89f8e5d9cb48","id":"eecb89fece7c4049","targetId":0,"prop":"y","version":2},{"expression":"B+((A-B)*0.1)","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":2,"version":2,"tag":"","inputCount":3,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":720,"y":448,"group":"eecb89f8e5d9cb48","id":"eecb89fec801c64e"},{"inputCount":0,"outputCount":1,"name":"Always","behaviorType":"logic.triggers.Always","x":-90,"y":576,"group":"eecb89f8e5d9cb48","id":"eecb89fe636e7247"},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":810,"y":96,"group":"eecb89f8e5d9cb48","id":"eecb89fe3042904f","portId":"eecb89f8e5d9cb48o0","tag":"Zoom","dataType":2},{"expression":"(C*32)/(Math.abs(A-B)+D)*100+1","default0":0,"default1":0,"default2":40,"default3":55,"default4":0,"default5":0,"params":4,"version":2,"tag":"","inputCount":5,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":450,"y":-32,"group":"eecb89f8e5d9cb48","id":"eecb89ffeb6c724d","notes":"C is the width of screen\nD is the padding","n_o":1},{"expression":"(C*32)/(Math.abs(A-B)+D)*100+1","default0":0,"default1":0,"default2":15,"default3":39,"default4":0,"default5":0,"params":4,"version":2,"tag":"","inputCount":5,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":450,"y":256,"group":"eecb89f8e5d9cb48","id":"eecb89ff5254254f","notes":"C is height of screen\nD is the padding","n_o":1},{"expression":"Math.min(A,B)","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":2,"version":2,"tag":"","inputCount":3,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":630,"y":96,"group":"eecb89f8e5d9cb48","id":"eecb89ff82101947"},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":180,"y":32,"group":"eecb89f8e5d9cb48","id":"eecb89ffd824b846","portId":"eecb89f8e5d9cb48i0","tag":"ScrenX","dataType":2},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":180,"y":128,"group":"eecb89f8e5d9cb48","id":"eecb89ff2c37c941","portId":"eecb89f8e5d9cb48i1","tag":"Padding","dataType":2},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":180,"y":192,"group":"eecb89f8e5d9cb48","id":"eecb89ffecec984f","portId":"eecb89f8e5d9cb48i2","tag":"ScrenY","dataType":2},{"expression":"Math.min(A,B)","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":2,"version":2,"tag":"Min X","inputCount":3,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":180,"y":-280,"group":"eecb89f8e5d9cb48","id":"f39c201a7181f34c"},{"inputCount":3,"outputCount":1,"name":"Position","behaviorType":"logic.NodeGroup","x":-180,"y":-160,"group":"f3b1504685d6cc4c","id":"eecb89f8e5d9cb48","isMenuItem":false},{"gateVal":50,"mode":"greater than","inputCount":2,"outputCount":2,"name":"Filter","behaviorType":"logic.logic.Filter2","x":0,"y":-160,"group":"f3b1504685d6cc4c","id":"eecb89ffb4245245"},{"gateVal":230,"mode":"less than","inputCount":2,"outputCount":2,"name":"Filter","behaviorType":"logic.logic.Filter2","x":180,"y":-256,"group":"f3b1504685d6cc4c","id":"eecb89ff44b7bc4e"},{"inputCount":0,"outputCount":1,"name":"Once","behaviorType":"logic.triggers.Once","x":-540,"y":-208,"group":"f3b1504685d6cc4c","id":"f3aededae897de47","resetOnLevelStart":false},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":-360,"y":-248,"group":"f3b1504685d6cc4c","id":"f3aee7847c943240","startVal":40,"tag":"","roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":-360,"y":-152,"group":"f3b1504685d6cc4c","id":"f3aee84617cf334d","startVal":19,"tag":"","roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":-360,"y":-48,"group":"f3b1504685d6cc4c","id":"f3af2422acad1d47","startVal":200,"tag":"","roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":180,"y":-136,"group":"f3b1504685d6cc4c","id":"f3b07f775cdc9647","startVal":50,"tag":"","roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":360,"y":-200,"group":"f3b1504685d6cc4c","id":"f3b0bbe302c6c443","startVal":300,"tag":"","roundMode":1},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":540,"y":-280,"group":"f3b1504685d6cc4c","id":"f3b191becf19eb49","portId":"f3b1504685d6cc4co0","tag":"Zoom","dataType":2},{"inputCount":1,"outputCount":0,"name":"Zoom","behaviorType":"logic.NodeGroup","x":90,"y":-336,"group":"","id":"f3b1cc039202174a","isMenuItem":false},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-90,"y":-32,"group":"f3b1cc039202174a","id":"f3b1f088ee0d9a4d","portId":"f3b1cc039202174ai0","tag":"Zoom","dataType":2},{"expression":"B+(A-B)*0.06","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":2,"version":2,"tag":"","inputCount":3,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":180,"y":-40,"group":"f3b1cc039202174a","id":"f3b203db194a5a4a"},{"inputCount":5,"outputCount":5,"name":"Camera","behaviorType":"logic.components.View","x":450,"y":-56,"group":"f3b1cc039202174a","id":"f3b22e36190f1c49","parallax":100,"scrollX":true,"scrollY":true,"minLeft":-1000,"maxRight":1000,"top":-1000,"bottom":1000}],"links":[{"input_id":"eecb89ff9b99a140i1","output_id":"eecb89ffc044af43o0"},{"input_id":"eecb89ff9b99a140i1","output_id":"eecb89ffc044af43o0"},{"input_id":"f3b1cc039202174ai0","output_id":"f3b1504685d6cc4co0"},{"input_id":"f3b1cc039202174ai0","output_id":"f3b1504685d6cc4co0"},{"input_id":"f39c201a7181f34ci0","output_id":"eecb89f82804a447o0"},{"input_id":"eecb89fc2b61a34ci0","output_id":"eecb89f82804a447o0"},{"input_id":"f39c201a7181f34ci1","output_id":"eecb89f80e1f5e43o0"},{"input_id":"eecb89fc2b61a34ci1","output_id":"eecb89f80e1f5e43o0"},{"input_id":"eecb89fecaeb3c48i0","output_id":"eecb89f8d4a89042o0"},{"input_id":"eecb89feb2e5d744i0","output_id":"eecb89f8d4a89042o0"},{"input_id":"eecb89fecaeb3c48i1","output_id":"eecb89f88682ca4fo0"},{"input_id":"eecb89feb2e5d744i1","output_id":"eecb89f88682ca4fo0"},{"input_id":"f39c201a7181f34ci2","output_id":"eecb89fcb6b6a14fo0"},{"input_id":"eecb89fc2b61a34ci2","output_id":"eecb89fcb6b6a14fo0"},{"input_id":"eecb89fd6f041847i1","output_id":"eecb89fc2b61a34co0"},{"input_id":"eecb89fd6f041847i2","output_id":"eecb89fc2b61a34co0"},{"input_id":"eecb89ffeb6c724di0","output_id":"eecb89fc2b61a34co0"},{"input_id":"eecb89ffeb6c724di1","output_id":"eecb89fc2b61a34co0"},{"input_id":"eecb89ffeb6c724di4","output_id":"eecb89fc2b61a34co0"},{"input_id":"eecb89fe4505604di0","output_id":"eecb89fd6f041847o0"},{"input_id":"eecb89fde61dae43i0","output_id":"eecb89fd6f041847o0"},{"input_id":"eecb89fe4505604di1","output_id":"eecb89fde61dae43o0"},{"input_id":"eecb89fe4505604di2","output_id":"eecb89fde61dae43o0"},{"input_id":"eecb89fe69481841i0","output_id":"eecb89fe4505604do0"},{"input_id":"eecb89ff5254254fi0","output_id":"eecb89fecaeb3c48o0"},{"input_id":"eecb89fe6c98434ai0","output_id":"eecb89fecaeb3c48o0"},{"input_id":"eecb89ff5254254fi1","output_id":"eecb89feb2e5d744o0"},{"input_id":"eecb89ff5254254fi4","output_id":"eecb89feb2e5d744o0"},{"input_id":"eecb89fe6c98434ai1","output_id":"eecb89feb2e5d744o0"},{"input_id":"eecb89fe6c98434ai2","output_id":"eecb89feb2e5d744o0"},{"input_id":"eecb89fec801c64ei0","output_id":"eecb89fe6c98434ao0"},{"input_id":"eecb89fece7c4049i0","output_id":"eecb89fe6c98434ao0"},{"input_id":"eecb89fec801c64ei1","output_id":"eecb89fece7c4049o0"},{"input_id":"eecb89fec801c64ei2","output_id":"eecb89fece7c4049o0"},{"input_id":"eecb89fe69481841i1","output_id":"eecb89fec801c64eo0"},{"input_id":"eecb89fecaeb3c48i2","output_id":"eecb89fe636e7247o0"},{"input_id":"eecb89feb2e5d744i2","output_id":"eecb89fe636e7247o0"},{"input_id":"eecb89ff82101947i0","output_id":"eecb89ffeb6c724do0"},{"input_id":"eecb89ff82101947i1","output_id":"eecb89ff5254254fo0"},{"input_id":"eecb89ff82101947i2","output_id":"eecb89ff5254254fo0"},{"input_id":"eecb89fe3042904fi0","output_id":"eecb89ff82101947o0"},{"input_id":"eecb89ffeb6c724di2","output_id":"eecb89ffd824b846o0"},{"input_id":"eecb89ffeb6c724di3","output_id":"eecb89ff2c37c941o0"},{"input_id":"eecb89ff5254254fi3","output_id":"eecb89ff2c37c941o0"},{"input_id":"eecb89ff5254254fi2","output_id":"eecb89ffecec984fo0"},{"input_id":"eecb89fd6f041847i0","output_id":"f39c201a7181f34co0"},{"input_id":"eecb89ffb4245245i1","output_id":"eecb89f8e5d9cb48o0"},{"input_id":"eecb89ff44b7bc4ei1","output_id":"eecb89ffb4245245o0"},{"input_id":"f3b07f775cdc9647i1","output_id":"eecb89ffb4245245o1"},{"input_id":"f3b191becf19eb49i0","output_id":"eecb89ff44b7bc4eo0"},{"input_id":"f3b0bbe302c6c443i1","output_id":"eecb89ff44b7bc4eo1"},{"input_id":"f3aee7847c943240i1","output_id":"f3aededae897de47o0"},{"input_id":"f3aee84617cf334di1","output_id":"f3aededae897de47o0"},{"input_id":"f3af2422acad1d47i1","output_id":"f3aededae897de47o0"},{"input_id":"eecb89f8e5d9cb48i0","output_id":"f3aee7847c943240o0"},{"input_id":"eecb89f8e5d9cb48i2","output_id":"f3aee84617cf334do0"},{"input_id":"eecb89f8e5d9cb48i1","output_id":"f3af2422acad1d47o0"},{"input_id":"f3b191becf19eb49i0","output_id":"f3b07f775cdc9647o0"},{"input_id":"f3b191becf19eb49i0","output_id":"f3b0bbe302c6c443o0"},{"input_id":"f3b203db194a5a4ai0","output_id":"f3b1f088ee0d9a4do0"},{"input_id":"f3b203db194a5a4ai2","output_id":"f3b1f088ee0d9a4do0"},{"input_id":"f3b22e36190f1c49i4","output_id":"f3b203db194a5a4ao0"},{"input_id":"f3b203db194a5a4ai1","output_id":"f3b22e36190f1c49o4"}]}}}

I saw that you weren’t using the screen x and y, so I added that for you, and I changed the zoom a bit

Also there are examples for checkpoints on the help page:

https://flowlab.io/game/play/1186464

Basicly you want to, instead of resetting the level, respawn them at their latest checkpoint.

1 Like

wait so do i delete every behaviour than impost that code in?

1 Like