laser

  1. 1up Indie

    GMS 2 All direction dragonball laser beam

    GM Version: GMS2 Target Platform: All Summary: This video tutorial shows you how to make a laser beam in gamemaker studio for all directions. You will get an insight how particles systems work and how to utilize lengthdir to draw the laser on the screen towards the direction of the mouse...
  2. M

    "Instance_create_depth" bug/annoying thing

    Hey, Recently I've been working on my own boss A.I., but I've encountered an annoying problem. Whenever I try to use the function "instance_create_depth" on my bot, on the first frame the instance that it creates spawns in the wrong coordinates which makes it look bad. I've tried many things to...
  3. zampa

    GML Laser obstacle

    I wanted to add a laser as an obstacle, basically you would have the laser emitter and the laser it self that goes on until it hits a wall, and i was wondering how to implement that last thing. My tiles are 32x32 so my idea was to run in a while statement a tilemap_get_at_pixel that checks that...
  4. RobotoSkunk

    GMS 2 Making a dynamic laser

    Hello, I try to create a beam that suits all types of surface in Game Maker Studio 2, so far I have the following code: while(!collision_line(x, y, x+lengthdir_x(long, image_angle), y+lengthdir_y(long, image_angle), obj_block, 1, 0)){ long++; if (long > room_width+room_height) then...
  5. Jordan Robinson

    GMS 2 Nearest Collision Point (Lasers, Bullets, Etc)

    Just wanted to make a wee post to build a bit more interest in a little asset I made for the GameMaker Marketplace. The main selling point of this asset is that it uses an algorithm I thought of to reduce the number of collision checks per step. It is designed to work sort of like the built in...
  6. orange08

    HTML5 Voltage

    Navigate 10 levels fraught with danger. Use stealth and extreme high voltage shocks to clear your path to the center of this mysterious digital dungeon. I created this game in 2 days, and a few days later I made an HTML5 port. Controls: Arrow keys or WASD, use X or spacebar to shoot. Play on...
  7. Bokkie2988

    Make a laser head towards a player

    Hello, So I'm making a space game where spaceships will shoot lasers towards a player. I want that once the laser gets created, it automatically heads towards the player, but not exactly. That way the player can still dodge the laser. Can anyone help me with this? -Bokkie
  8. V

    Windows So Much Laserz! - retro puzzle-platformer with lasers

    Hello! Finally I took courage to show you guys what little abomination I commited :) So Much Laserz! (quite cringey title, isn't it?) is a game I made for one of my college projects, over a year ago, and after getting positive feedback from my friends, parents and my course instructor AND after...
  9. Deadly Serious Media

    Job Offer - Programmer Trail Effect and Lasers (closed)

    Hello, We are working on our second GM title and are looking to add some extra visual effects but can't seem to wrap our head around them. The first we are looking to add is a trailing ninja bandanna off our player. We are looking to add 2 trails that wave but also follow the players path...
  10. C

    GMS 2 Help with objects direction staying consistent

    Hey So I am trying to make my player object shoot out a laser. I want it to shoot for as long as you hold the right mouse button, and stop when you stop, so I use a bunch of different objects to act as one laser. The laser has a sort of chargeup phase, and after the chargeup phase, the animation...
  11. Z

    GMS 2 [Solved] Making a laser between two coordinates

    I'm making a platformer and right now I want a laser that can activate a trap when the player collides with it. I have one laser emitter and one laser receiver. My current idea is to have the emitter search for the nearest receiver and then create an instance of a laser object for every 32nd...
  12. M

    Laser Turret

    I have a platformer where turrets are the main enemy shooting at you, but I can't seem to get the laser right. I have tried creating a second object for the turret to shoot, but it doesn't create the solid laser I want and it sometimes shoots it sideways. When I look for tutorials all I see is...
  13. Thexel PIN

    Legacy GM Blockable Laser...

    Hi, today I have a problem, a solution and a question. I would like to do this... Now, there's a way of doing it. This way. The way of doing it is to create different points directed toward the corner of a shape, and then create two more points that go 1 degree more and less than the point...
  14. R

    [SOLVED] Horizontal laser beam object

    Hello, I am creating a platformer, and basically I have been stuck for a few days trying to figure out how to make a laser beam object. The object I wish to create would use a sprite, draw itself out horizontally to a set maximum length, discontinue to draw itself out upon collision, and...
  15. K

    Kamehameha style beam

    Creating a Dragon ball game and am trying to incorporate a beam style attack. have seen many different soulutions bouncing roung the internet but just wanted to get peoples oppinion. Here is what im looking for: - Beam is able to contact objects (So it wont just pass through them but will...
  16. Axl Trauts

    Laser Beam collition sensitive

    Hi guys, I have been having trouble for a long time creating a laser beam. What I like to achieve is to create a laser that starts from the player (top-down view, shoot'em up spaceship) to the enemy in front of him. I have followed the instructions here by user Bojack29...
Top