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:

Nguồn: https://ijetmr.org/

Xem thêm bài viết khác: https://ijetmr.org/game/



4 thoughts on “🔴 Laser bullets – Easy and complex [Game Maker Studio 2 | Advanced]

Leave a Reply

Your email address will not be published. Required fields are marked *