Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | jim |
Hello everyone! Im developing a 2D rogue-like game and came up with the following predicament:
Im doing a weapon that shoots a laser-like beam that attaches itself to either the second player or the enemy (Both KinematicBodies here), and keep both ends connected while doing damage to whatever comes in contact with it and has a certain tag (enemies). The player and enemies can move, so the line has to acompany that movement (might change either direction, distance, etc…)
…That was the plan, but i have no idea on how to approach this. In Unity i suppose i could use Line Renderer to put a texture on the line, and work via code with two Vector2 positions to apply damage and conect the line begining and end. Is that possible in Godot?
I know about the Draw() function, but a simple line with solid color is not exactly what i am lookin for here. Maybe a particle emmiter in order to produce the lightning effect?
Does anybody have a suggestion…? Thanks in advance!