Today, I am going to show you how to create lasers in game. It is very easy just follow the steps:
1. Create a sprite long in height (make it red if you want red laser)
2. Give it SIN behavior to move back & forth
3. Then create blocks as sprite
4. When laser over laps block set laser height to block.Y
5. Invert condition then set laser height maximum which you want.
Feeling complex? Don't worry. Sharing Free capx for you.
You can see video here to understand the settings: