I'm following along with the Make Your First RPG tutorial on youtube, and so far it's going great, but the collision code isn't working.
I'm having problems in this section of the video: https://youtu.be/1J5EydrnIPs?si=tiR8mGaaVVjGvUeE&t=568
My code looks like this:
Under create, I have
move_speed = 1;
tilemap = layer_tilemap_get_id("Tiles_Col");
and Under step, I have
var _hor = keyboard_check(ord("D")) - keyboard_check(ord("A"));
var _ver = keyboard_check(ord("S")) - keyboard_check(ord("W"));
move_and_collide(_hor * move_speed, _ver * move_speed, tilemap);
The only thing that comes to mind is that I don't have an object for the tiles I'm trying to make the player collide with, but that shouldn't matter when using a tile set, and having all the tiles I want to collide with the player be on one layer, with the others on a different layer. This system worked for the developer in the tutorial, but not for me. Making the player object solid has not fixed it either. As far as I can tell, I haven't done anything different from the tutorial, and everything else is working as intended. Please let me know what could fix it.
Create your own Role-Playing Game (RPG) in GameMaker 👾. These tutorials are designed to take you from beginner to completing your first game step-by-step. No coding experience is required.
👉 Get GameMaker (it's 100% free): https://opr.as/DownloadGM-YT
00:00 Intro
00:46 Create Your Project
02:29 Level Design
07:12 Player Movement
11:50 Pl...