Hello there. Hugs from Brazil :)
So, I want to make an enemy that summon a giant laser in the direction of the hero, but that laser gets smaller or bigger depending of the distance between the wall and the enemy
If you don't understanded, I will explain better:
There is an enemy that walks (using the pathfinder), and he has a laser. If the enemy is 100 pixels away from the wall, the laser gonna be 100 pixels width. If the enemy is 15 pixels away from the wall, the laser gonna be 15 pixels width.
The only help that I need is to make the multiple-sizeble sprite (laser). Don't need help about the enemy's behavior.