Discord
Login
Community
DARK THEME

I got bad news, Quick Engine 2.0 is probably going to have a massive delay :(

The problem I have been trying to fix for weeks is just turning into a problem every time,

That747guy said:

Hello! I love the engine, but my sprite wont properly collide with a map that I have made. I added the map and turned on the collisions for the sprite and map, but the sprite just moves right through it. Could you help me?

MasonC told me:

i have tried making a map and character but my chracter still falls through the map? turning on visible collision boxes shows that the map has no collision even when using: map1 = Quick.addMap("blocks1",x,0,530,200) map1.fixed = true map1.setSolid("brick")

and coolbananagames told me this too:

please no no spaghetti code

I was trying to make it more simple and easy to understand but it created more and more problems and it is becoming stressful for me.

What should I do? Should I basically restart it? Please tell me I still want this for you guys!

I've managed to get your map collision working by adjusting the isMapCellSolid function like the one below. Hope that helps

Quick.isMapCellSolid = function(m, x, y) 
  local cell = m.map.get(x,y)
  if not cell or cell == 0 then return 0 end
  local cell_name = cell.split(":")[0]
  return not m.hollow[cell_name]
end

Oh Thanks! you can use it!

use your ai to fix any of your code tiberius2

OOOMMMGGG I am so dumb why did I now think of that? I will try!

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community