Quick engine door collide
How would i code a door (in quick engine) that when you collide with it takes you to the next map?
How would i code a door (in quick engine) that when you collide with it takes you to the next map?
You could use the quick engine map.Extract(door) function to take it like an object. Then you can use the collision function of mrLman (https://microstudio.dev/i/mrLman/gamesproglibrary/) and check if the player is colliding with the door. Finally if this happens, you change the map.
Sorry by my not very good english!
:)
Thanks! I will definitely be trying that! also your English is really good!
You are welcome!
do i just use this? also how do i use this? if thats fine checkCollision = function(x, y, map_name, map_draw_width, map_draw_height) local grid_x = floor((x + map_draw_width / 2) / (map_draw_width / maps[map_name].width)) local grid_y = floor((y + map_draw_height / 2) / (map_draw_height / maps[map_name].height)) return maps[map_name].get(grid_x, grid_y) end