Hi there pls help

hey i need help with the last level on my game there’s a boss fight and i want to know to make the boss shoot at my player so if i move he will shoot there

Extract the player’s pos, then use an angleto bundle to set the angle of the emit.

3 Likes

that was exactly what i was gonna say jr01 has an angle-to example just use that and put a timer so then the boss only shoots every time the timer goes off instead of the boss shooting infinitely really fast

2 Likes

can you send a screen shot of what i need to put in the player and the boss

2 Likes

just always raycast and use switches to turn off the movement

2 Likes

He cant read whats in your head lol and yes i can gonna have to give me a bit tho im in math class

1 Like

ok thanks i cant read that guys mind

1 Like

always → raycast (miss) → (off) switch
it’s exactly what i said lol

1 Like

Ok ima have to give you pictures in my la class (40 minutes or so from now) because my computer is dead dead and i need a charger

Heres JR_01 Angle To bundle

Importable

{“data”:{“behavior”:{“v”:“2”,“nodes”:[{“inputCount”:2,“outputCount”:1,“name”:“AngleTo”,“behaviorType”:“logic.NodeGroup”,“x”:630,“y”:-224,“id”:“43ff8f7159dd5b4b”,“isMenuItem”:true},{“inputCount”:1,“outputCount”:1,“name”:“Extractor”,“behaviorType”:“logic.properties.Extractor”,“x”:180,“y”:160,“group”:“43ff8f7159dd5b4b”,“id”:“43ff8f78ac01e244”,“targetId”:0,“prop”:“x”},{“inputCount”:1,“outputCount”:0,“name”:“Bundle Output”,“behaviorType”:“logic.NodeGroupOutput”,“x”:1260,“y”:224,“group”:“43ff8f7159dd5b4b”,“id”:“43ff8f7897fadd48”,“portId”:“43ff8f7159dd5b4bo0”,“tag”:“angle”,“dataType”:2},{“inputCount”:0,“outputCount”:1,“name”:“Bundle Input”,“behaviorType”:“logic.NodeGroupInput”,“x”:0,“y”:160,“group”:“43ff8f7159dd5b4b”,“id”:“43ff8f7b740f8b4b”,“portId”:“43ff8f7159dd5b4bi0”,“tag”:“x”,“dataType”:2},{“inputCount”:0,“outputCount”:1,“name”:“Bundle Input”,“behaviorType”:“logic.NodeGroupInput”,“x”:0,“y”:288,“group”:“43ff8f7159dd5b4b”,“id”:“43ff8f7cae88154a”,“portId”:“43ff8f7159dd5b4bi1”,“tag”:“y”,“dataType”:2},{“inputCount”:1,“outputCount”:1,“name”:“Extractor”,“behaviorType”:“logic.properties.Extractor”,“x”:180,“y”:288,“group”:“43ff8f7159dd5b4b”,“id”:“43ff8f7c8bf63b42”,“targetId”:0,“prop”:“y”},{“inputCount”:3,“outputCount”:1,“name”:“Switch”,“behaviorType”:“logic.logic.Switch”,“x”:630,“y”:160,“group”:“d61f19b9ec336742”,“id”:“d61ef89090af3443”,"_startVal":0,“dataType”:2},{“inputCount”:3,“outputCount”:1,“name”:“Switch”,“behaviorType”:“logic.logic.Switch”,“x”:810,“y”:160,“group”:“d61f19b9ec336742”,“id”:“d61f0038b36aa541”,"_startVal":0,“dataType”:2},{“inputCount”:0,“outputCount”:1,“name”:“Bundle Input”,“behaviorType”:“logic.NodeGroupInput”,“x”:450,“y”:160,“group”:“d61f19b9ec336742”,“id”:“d61f3f2a40c2874d”,“portId”:“d61f19b9ec336742i0”,“tag”:“A”,“dataType”:2},{“inputCount”:1,“outputCount”:0,“name”:“Bundle Output”,“behaviorType”:“logic.NodeGroupOutput”,“x”:1170,“y”:160,“group”:“d61f19b9ec336742”,“id”:“d61f406ba721634c”,“portId”:“d61f19b9ec336742o0”,“tag”:“A”,“dataType”:2},{“inputCount”:0,“outputCount”:1,“name”:“Bundle Input”,“behaviorType”:“logic.NodeGroupInput”,“x”:450,“y”:256,“group”:“d61f19b9ec336742”,“id”:“d61f5fa5b6fdbe45”,“portId”:“d61f19b9ec336742i1”,“tag”:“B”,“dataType”:2},{“inputCount”:1,“outputCount”:0,“name”:“Bundle Output”,“behaviorType”:“logic.NodeGroupOutput”,“x”:1170,“y”:256,“group”:“d61f19b9ec336742”,“id”:“d61ff2c0d24f4441”,“portId”:“d61f19b9ec336742o1”,“tag”:“B”,“dataType”:2},{“inputCount”:3,“outputCount”:1,“name”:“Number”,“behaviorType”:“logic.logic.Value”,“x”:990,“y”:256,“group”:“d61f19b9ec336742”,“id”:“d62008360369f946”,“startVal”:0,“roundMode”:1},{“inputCount”:3,“outputCount”:1,“name”:“Number”,“behaviorType”:“logic.logic.Value”,“x”:990,“y”:160,“group”:“d61f19b9ec336742”,“id”:“d62008e4f3e43841”,“startVal”:0,“roundMode”:1},{“inputCount”:2,“outputCount”:2,“name”:“Input Gate”,“behaviorType”:“logic.NodeGroup”,“x”:540,“y”:224,“group”:“43ff8f7159dd5b4b”,“id”:“d61f19b9ec336742”,“isMenuItem”:false},{“expression”:“A<0? A+360:A”,“default0”:0,“default1”:0,“default2”:0,“default3”:0,“default4”:0,“default5”:0,“params”:1,“version”:2,“tag”:“Angle+”,“inputCount”:2,“outputCount”:1,“name”:“Expression”,“behaviorType”:“logic.logic.Expression”,“x”:900,“y”:224,“group”:“43ff8f7159dd5b4b”,“id”:“df49d9f3181def40”},{“expression”:“90-(Math.atan2(A,B)/Math.PI) * 180”,“default0”:0,“default1”:0,“default2”:0,“default3”:0,“default4”:0,“default5”:0,“params”:2,“version”:2,“tag”:“AngleTo”,“inputCount”:3,“outputCount”:1,“name”:“Expression”,“behaviorType”:“logic.logic.Expression”,“x”:720,“y”:224,“group”:“43ff8f7159dd5b4b”,“id”:“df49dc1a1fcce84d”},{“expression”:“A-B”,“default0”:0,“default1”:0,“default2”:0,“default3”:0,“default4”:0,“default5”:0,“params”:2,“version”:2,“tag”:“Y Difference”,“inputCount”:3,“outputCount”:1,“name”:“Expression”,“behaviorType”:“logic.logic.Expression”,“x”:360,“y”:288,“group”:“43ff8f7159dd5b4b”,“id”:“df49de961dbd4744”},{“expression”:“B-A”,“default0”:0,“default1”:0,“default2”:0,“default3”:0,“default4”:0,“default5”:0,“params”:2,“version”:2,“tag”:“X Difference”,“inputCount”:3,“outputCount”:1,“name”:“Expression”,“behaviorType”:“logic.logic.Expression”,“x”:360,“y”:160,“group”:“43ff8f7159dd5b4b”,“id”:“df49e06cdcfc924b”},{“expression”:“Std.int(A)”,“default0”:0,“default1”:0,“default2”:0,“default3”:0,“default4”:0,“default5”:0,“params”:1,“version”:2,“tag”:“Round”,“inputCount”:2,“outputCount”:1,“name”:“Expression”,“behaviorType”:“logic.logic.Expression”,“x”:1080,“y”:224,“group”:“43ff8f7159dd5b4b”,“id”:“df4b4920040b8b4c”}],“links”:[{“input_id”:“df49e06cdcfc924bi1”,“output_id”:“43ff8f78ac01e244o0”},{“input_id”:“df49e06cdcfc924bi0”,“output_id”:“43ff8f7b740f8b4bo0”},{“input_id”:“43ff8f78ac01e244i0”,“output_id”:“43ff8f7b740f8b4bo0”},{“input_id”:“df49e06cdcfc924bi2”,“output_id”:“43ff8f7b740f8b4bo0”},{“input_id”:“df49de961dbd4744i0”,“output_id”:“43ff8f7cae88154ao0”},{“input_id”:“43ff8f7c8bf63b42i0”,“output_id”:“43ff8f7cae88154ao0”},{“input_id”:“df49de961dbd4744i2”,“output_id”:“43ff8f7cae88154ao0”},{“input_id”:“df49de961dbd4744i1”,“output_id”:“43ff8f7c8bf63b42o0”},{“input_id”:“d61f0038b36aa541i2”,“output_id”:“d61ef89090af3443o0”},{“input_id”:“d62008e4f3e43841i1”,“output_id”:“d61f0038b36aa541o0”},{“input_id”:“d62008360369f946i1”,“output_id”:“d61f0038b36aa541o0”},{“input_id”:“d62008e4f3e43841i0”,“output_id”:“d61f3f2a40c2874do0”},{“input_id”:“d61ef89090af3443i1”,“output_id”:“d61f3f2a40c2874do0”},{“input_id”:“d61ef89090af3443i2”,“output_id”:“d61f3f2a40c2874do0”},{“input_id”:“d61f0038b36aa541i1”,“output_id”:“d61f5fa5b6fdbe45o0”},{“input_id”:“d61ef89090af3443i2”,“output_id”:“d61f5fa5b6fdbe45o0”},{“input_id”:“d62008360369f946i0”,“output_id”:“d61f5fa5b6fdbe45o0”},{“input_id”:“d61ff2c0d24f4441i0”,“output_id”:“d62008360369f946o0”},{“input_id”:“d61f406ba721634ci0”,“output_id”:“d62008e4f3e43841o0”},{“input_id”:“df49dc1a1fcce84di0”,“output_id”:“d61f19b9ec336742o0”},{“input_id”:“df49dc1a1fcce84di1”,“output_id”:“d61f19b9ec336742o1”},{“input_id”:“df49dc1a1fcce84di2”,“output_id”:“d61f19b9ec336742o1”},{“input_id”:“df4b4920040b8b4ci0”,“output_id”:“df49d9f3181def40o0”},{“input_id”:“df4b4920040b8b4ci1”,“output_id”:“df49d9f3181def40o0”},{“input_id”:“df49d9f3181def40i0”,“output_id”:“df49dc1a1fcce84do0”},{“input_id”:“df49d9f3181def40i1”,“output_id”:“df49dc1a1fcce84do0”},{“input_id”:“d61f19b9ec336742i1”,“output_id”:“df49de961dbd4744o0”},{“input_id”:“d61f19b9ec336742i0”,“output_id”:“df49e06cdcfc924bo0”},{“input_id”:“43ff8f7897fadd48i0”,“output_id”:“df4b4920040b8b4co0”}]}}}

do i put this in boss or player

Put that in the boss, the X and Y position is the players X and Y