This video tutorial shows you how to make laser bullets the easy and more complex way.
Why is there a complex way?
Well, first because hitboxes are rectangles, so if you have an angle let’s say diagonal then your bounding box becomes simply bigger. The second point is that you maybe want to have and animation to your laser, then a standard 3 part system is required.
Here is the easy way. You simply shoot only in 4 directions (up, down, left, right) then you can have a fixed sprite of your laser and give it direction, speed and image angle by creation.
The complex way needs some adjustments because here, you need to calculate 3 extra point which are the middle stretched parts (start and end) and the endsprite point. Then you need to calculate 3 collision lines. One site in the middle of the laser and the other two are along the border.
Tileset by Matriax CC0
if you like his inca temple, consider supporting him!
Egg/Monster by buch CC3 sa by
▶ Gamemaker Studio:
▶ Trial limitations:
♥ My free game Clunky souls:
♥ My assets:
Get some assets at itch.io
♥ Support me and get fresh game art and game maker projects every month:
Follow me on:
Xem thêm Bài Viết:
- Top 50+ Best Food Hat Custom Designs In Animal Crossing New Horizons – Design ID Code
- Ouija Board in Suicide Forest…| Aokigahara, Japan (scary)
- ECO | EP 6 | Quarry and Mortared Stone | Multiplayer ECO (S1)
- Before Nightfall – A Graphically Impressive "Small Survival Game" for Just 99 Cents!
- Wind Waker HD: Go, Dan! – PART 29 – Game Grumps