• Hey! Guest! The 36th GMC Jam will take place between February 27th, 12:00 UTC - March 2nd, 12:00 UTC. Why not join in! Click here to find out more!

raycasting

  1. Posho

    GMS 2 Range Movement With Collision

    Hello, I am trying to make an enemy move to a random position within a radius. First the position is set and then it travels in the Step Event. It has to move to a position that is longer than a minimum value and shorter than a maximum value. This is how I went with it: Define target position...
  2. FatalSleep

    Quick Ray-Traced (QRT) Lighting Tutorial

    GM Version: GM:S 2 (2.2.1.357 IDE, 2.2.1.287 RunTime). Target Platform: Any (As long as they support GLSL ES Shaders). Difficulty: Hard Download Example: Google Drive Summary: This tutorial will cover the difficulties of lighting and my specific solution using my unique GPU based 2D...
  3. 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...
  4. D

    GMS 2 Box2D Raycasting?

    Hey all, I'm making a physics based game and need some sort of raycasting system to determine line of sight and stuff for the AI. I know we have collision_line and those other functions, but those aren't for Box2D physics and thus won't be very accurate (or perhaps even possible) in some...
  5. ras maxim

    Raycasting engine - help needed

    Hello. I am trying to implement a simple raycasting algorythm in Game Maker Studio 1.4 following the tutorials by Permadi and Lode Vandevenne and I need some help. Project file: Download Compiled executable: Download Things I want to improve: Division by zero bug. When checking for...
  6. wadaltmon

    3D Changing Movement Distance Based on Distance from Camera (P3DC, Raycasting)

    Hello! Background: I am creating a 3D, isometric RPG. In order to make collisions more expedient, I am using the P3DC extension. As in most isometric RPGs, the mouse is used to control where the player character will move and what the player will interact with. As such, I implemented a ray...
  7. R

    Legacy GM I Need Help With Fake 3D 2D First Person Engine

    I have been working on just the fake 3D engine of my game for days now and can't seem to create the view in the video below. I think I have figured out how to scale the sprites correctly. I can't seem to figure out how to rotate the world sprites. I can only slide world sprites on the x axis to...
  8. M

    How would i use raycasting to create a Wolfenstein 3D type of game?

    [DELETE]
  9. S

    Specific Objects

    I am doing a project with raycasting, and I need to find a unique id of the object hit by a collision line is that possible? And, if so how?
  10. K

    3D How to make a basic 3D game using raycasting?

    Well, first post on the new GM forums! I know it's probably a big ask here; but how would you make a basic 3D game where you can move around and collide into walls, which uses the raycasting technique (like the old Id Software games)? It's always interested me and I kinda wanna try out...
  11. B

    Legacy GM Question My Ray Casting Game

    Hello! I'm currently making a ray casting game (The illusion of 3D) and I've ran into a problem. I have made a script that draws whatever instance's sprite next to the game area (Where all the 2D stuff happens (i'll include a few pictures)). I've made a vision cone and whatever is in that vision...
  12. B

    Legacy GM Vision Cone Problem

    Hello, right now i'm making a ray casting game (the illusion of 3D) but I've run into a problem and i'm not able to do myself. Basically, (This is all in the 2D room) I've got my 90 degree vision cone coming out like a triangle from my player. I've done this by drawing 3 lines. Then I send a...
Top