How to make player's light view?

The character is in a drak state so I need the character to have light showing around the character how?

put this in objects

{"data":{"behavior":{"v":"2","nodes":[{"inputCount":0,"outputCount":0,"name":"Lighting","behaviorType":"logic.NodeGroup","x":540,"y":192,"group":"","id":"4162573987177141","isMenuItem":false},{"expression":"b-a","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":2,"version":1,"tag":"","inputCount":3,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":270,"y":224,"group":"3ccf7d35246bc84b","id":"3ccf7d39d14fc941"},{"expression":"b-a","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":2,"version":1,"tag":"","inputCount":3,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":270,"y":96,"group":"3ccf7d35246bc84b","id":"3ccf7d3a0025244a"},{"inputCount":0,"outputCount":1,"name":"Always","behaviorType":"logic.triggers.Always","x":-270,"y":64,"group":"3ccf7d35246bc84b","id":"3ccf7d3ac9b27c45"},{"expression":"Math.sqrt(Math.abs(A*A) + Math.abs(B*B))","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":2,"version":1,"tag":"","inputCount":3,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":450,"y":160,"group":"3ccf7d35246bc84b","id":"3ccf7d3baaab754e"},{"inputCount":1,"outputCount":1,"name":"Extractor","behaviorType":"logic.properties.Extractor","x":-90,"y":128,"group":"3ccf7d35246bc84b","id":"3ccf7d3b04d4ca4d","targetId":0,"prop":"y"},{"inputCount":1,"outputCount":1,"name":"Extractor","behaviorType":"logic.properties.Extractor","x":-90,"y":32,"group":"3ccf7d35246bc84b","id":"3ccf7d3b4a495248","targetId":0,"prop":"x"},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-90,"y":224,"group":"3ccf7d35246bc84b","id":"3ccf7d3c13278c4b","portId":"3ccf7d35246bc84bi0","tag":"X","dataType":2},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-90,"y":320,"group":"3ccf7d35246bc84b","id":"3ccf7d3c1ef7be47","portId":"3ccf7d35246bc84bi1","tag":"Y","dataType":2},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":630,"y":160,"group":"3ccf7d35246bc84b","id":"3ccf7d3cfa258141","portId":"3ccf7d35246bc84bo0","tag":"Pixels","dataType":2},{"inputCount":2,"outputCount":1,"name":"Distance","behaviorType":"logic.NodeGroup","x":720,"y":128,"group":"4162573987177141","id":"3ccf7d35246bc84b","isMenuItem":false},{"inputCount":3,"outputCount":1,"name":"Global","behaviorType":"logic.logic.Global","x":540,"y":192,"group":"4162573987177141","id":"3cd03ae38dd30642","tag":"player y:Number","version":2,"dataType":2},{"inputCount":3,"outputCount":1,"name":"Global","behaviorType":"logic.logic.Global","x":540,"y":64,"group":"4162573987177141","id":"3cd03b6016ef4f4a","tag":"player x:Number","version":2,"dataType":2},{"expression":"B-(A/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":900,"y":128,"group":"4162573987177141","id":"3cd09b28b7a80f4a"},{"inputCount":1,"outputCount":1,"name":"Alpha","behaviorType":"logic.properties.Alpha","x":1170,"y":64,"group":"4162573987177141","id":"3cd12327e7dbb847"},{"inputCount":3,"outputCount":1,"name":"Global","behaviorType":"logic.logic.Global","x":720,"y":256,"group":"4162573987177141","id":"3ce97a0c58a5fa47","tag":"brightness:Number","version":2,"dataType":2}],"links":[{"input_id":"3ccf7d3baaab754ei1","output_id":"3ccf7d39d14fc941o0"},{"input_id":"3ccf7d3baaab754ei2","output_id":"3ccf7d39d14fc941o0"},{"input_id":"3ccf7d3baaab754ei0","output_id":"3ccf7d3a0025244ao0"},{"input_id":"3ccf7d3b4a495248i0","output_id":"3ccf7d3ac9b27c45o0"},{"input_id":"3ccf7d3b04d4ca4di0","output_id":"3ccf7d3ac9b27c45o0"},{"input_id":"3ccf7d3cfa258141i0","output_id":"3ccf7d3baaab754eo0"},{"input_id":"3ccf7d39d14fc941i0","output_id":"3ccf7d3b04d4ca4do0"},{"input_id":"3ccf7d3a0025244ai0","output_id":"3ccf7d3b4a495248o0"},{"input_id":"3ccf7d3a0025244ai1","output_id":"3ccf7d3c13278c4bo0"},{"input_id":"3ccf7d3a0025244ai2","output_id":"3ccf7d3c1ef7be47o0"},{"input_id":"3ccf7d39d14fc941i1","output_id":"3ccf7d3c1ef7be47o0"},{"input_id":"3ccf7d39d14fc941i2","output_id":"3ccf7d3c1ef7be47o0"},{"input_id":"3cd09b28b7a80f4ai0","output_id":"3ccf7d35246bc84bo0"},{"input_id":"3cd09b28b7a80f4ai2","output_id":"3ccf7d35246bc84bo0"},{"input_id":"3ccf7d35246bc84bi1","output_id":"3cd03ae38dd30642o0"},{"input_id":"3ccf7d35246bc84bi0","output_id":"3cd03b6016ef4f4ao0"},{"input_id":"3cd12327e7dbb847i0","output_id":"3cd09b28b7a80f4ao0"},{"input_id":"3cd09b28b7a80f4ai1","output_id":"3ce97a0c58a5fa47o0"}]}}}

adjust brightness global to what you want and put x and y globals for player in game

1 Like

Thank you! I will put you in the end-game credits for the help! Thank you!

Does not work everytime i try to paste wont show code

Hello @Galactian


I have not been able to figure that out, but anyways I also want to have a reload mechanic for my game. So I went looking for an example how to do so I found:

This was made by @JR01 Which I tried doing for my top-down game. Since the character is using the mouse.move = mouse.point I want the bullet to shoot the way I am pointing at but it does not. So if you could tell me how to change this example to a top down gun example I would glad( Just asking just in case the flowlab user JRO1 is not here)

Forums convert certain parts of Flowlab code to something that won’t work with Flowlab :frowning_face:.

1 Like

So hour do I fix that?

1 Like

Idk man but you have to figure out which characters are being auto-converted by the forums (I forgor :skull: which ones) and then put the code into Google Docs or a text filter and replace the forum-converted text with the correct text characters.

1 Like

If you reload that example, a fixed something in the bundle for the angle to output properly.
For a point-at method, it would look something like this:


Use the Code format by using this simbol ``` on each side.

3 Likes

Zamn! Thank you very much.

Thank You For The Help JRO1!
I will try to do what you said

1 Like

There is another porblem? How do I stop the animation and shooting sfx? when reload?

That will depend on how you have the animations set up and their priorities.
Could you send a link to the game and the name of the gun object?

1 Like