walls

  1. Z

    GML I need help with Slopes (diagonal walls) with a Zelda-like move code

    Hi, I'm creating a game with Zelda-like moves but I have problems with diagonal walls (like slopes), with this code: In the create event: xvel = 0; yvel = 0; In the step event: Left = keyboard_check(vk_left); Up = keyboard_check(vk_up); Down = keyboard_check(vk_down); Right =...
  2. D

    GML Visual Sliding around a box in top down shooter

    I am making a space shooter with indoor rooms, and when my ship collides with a surface, I want it to slide either up or down or left or right on the object, depending on if the surface is horizontal or vertical. In this video, you can see that I have figured out how to get the ship to slide...
  3. M

    GameMaker Need help with tilemap for collision (when I create the tileset, it does not show my colored tile)

    Sorry if this is a dumb question. I am trying to have large curving walls in a scene, and I want collision on them (no objects should be able to pass through them.) At first I tried just putting a huge object, complete with it's own massive sprite, into the room for each wall. However, none of...
  4. Salem Holly

    3D Help with 3D blood decals on walls (GM 1.4)

    In my 3D fps shooter, I have a pretty basic system for blood. It just spawns a flat sprite on the ground, and to keep the game from slowing down, I have an instance check that sees if there are more than X amount of blood decals, and if there are, then it deletes the first ones created. This...
  5. M

    GameMaker Character is off set in game

    This is my second game i've tried to make and they have both had this problem. I gave up on the first one because it wasnt important to me. This one though I am going all the way through. When I made the collisions everything worked. It looked like this: /// @description Physics //Keys key_left...
  6. M

    Making FPS Wall Switches?

    Not sure where to post this, but what I am asking about may have a lot to do with programming. Okay, this is all regarding the 3D, or "d3d", format. Let's say I want to make a wall switch in my first person shooter. You know, like how you interact with switches in DOOM or Wolfenstein 3D. You...
  7. K

    Windows [SOLVED] Help, room wont let me place wall wherever I want!

    Hello, I've been working with gamemaker studio 2 for 12 days now, got my character moving really good, good sprites and animations but now thatI want to make a room for test this problem appears, there are specific places I cant place my 32x32 pixel walls, I have my first proyect and I dont have...
  8. B

    top down movement collission

    im having troubles with my collision with walls for my top down game. this is my code: vspeed = 0; hspeed = 0; if(keyboard_check(ord("W"))) vspeed -= 4; if !audio_is_playing(so_footsteps) { audio_play_sound(so_footsteps, 1, false) } if(keyboard_check(ord("S"))) vspeed +=...
  9. Gigicom

    GameMaker [SOLVED] Collision with wall

    Hello I now tried several tutorials for a code that works better than the solid option for collision. But the character always collides with the wall a few pixels away. Here is my movement-code: if keyboard_check_direct(ord("W")){ y -= walk_speed; } if keyboard_check_direct(ord("A")){...
  10. S

    GML I have a problem, and I am beginner

    Hi! I want to make this little platforming game prototype, and I wrote that if object player kills an enemy the object wall will change sprites, the problem is that if I want to change back (by killing another enemy) to the original sprite, the other enemies start glitching through the object...
  11. S

    tile colition fixing

    I was trying to make tile collision but some thing strange happens so i recorded it so you can see what is happening https://photos.app.goo.gl/V9m9Geda7s5QHkF4A so this is what i have for my collision code right now OBJ_player create//: tilemap = layer_tilemap_get_id("wall_colisin")...
  12. P

    Windows 12/19/18 IDE broke my Doors (child of my main collision object)

    Hey guys. I have a door that closes an area during some triggered event. That door is a child of my collision object (or basically my walls and floor) The door was working fine until today's update. now for some reason, player and enemies can pass through the door, unless I exit and come...
  13. Dr_Nomz

    Legacy GM [SOLVED] How do I make the Mask not move, when the object uses image_angle?

    I have a character that looks all around via the mouse cursor, but because of how game maker works, this causes issues when looking around while hugging walls. So I figured just changing the mask would fix it, right? But no, the mask turns with the character. That said, how do I make the mask...
  14. Pfap

    GML enemies "seeing" through tiles

    [SOLVED]Ok, so I have a really nice mp_grid system where I blocked off cells based on whether or not a wall tile was in them. I didn't really plan on what an issue enemies being able to see through walls would be though. The collision_line() function only works with objects. I'm trying to find...
  15. D

    AI Mob Movement with Moving Platforms

    Hello, I have adopted the RTS Group movement system found in the marketplace to create the effect of mobs of units moving towards a single goal (the Player). It works beautifully for moving units and moving them around objects. The only issue I am having is when I try to move a unit around a...
  16. M

    GML Play can walk through walls when angled a certain way

    I have always struggled with creating walls and for that reason I try to create games that don't require them however that's bad habit and I think it's about time I get this resolved. I only know of one way to create walls and that's to check the place meeting of the player and the wall object...
  17. A

    Legacy GM Help with crawling on walls

    -
  18. M

    GML Player gets stuck in wall

    I've been spending the last while trying to create a wall that works fine, I've watched 2 or 3 youtube tutorials but all are giving me the same result regardless; my player gets stuck in the wall and I cannot get out. I want to know what the best way as to go about creating a wall that works...
  19. M

    GML Walls Won't Work

    I'm very new at coding this so this might be an obvious mistake and I apologize but I'm trying to make it so my player cannot walk outside of the room. I created a sprite for the wall which I don't think was necessary actually considering there is no picture for the wall and I created an object...
  20. M

    Identifying patterns of object positions in a grid - solved, works as intended

    Works now, here's a look: Thank you all for your help! As you can see this thing ignores walls, (but can still mark them if needed) and will take any floors, to be later added onto an array or flagged or whatever. and it does nothing if it finds an empty space in there, such as a wall being...
Top