Discord
Login
Community
DARK THEME

Help with code.

I don't know but the AABB collision code don't work in my code.

Link of my project: https://microstudio.io/rianstar/ghosthunt/

Any way, thank you for the help.

draw = function()
  screen.fillRect(x,y, 450, 200, "rgb(175,131,197)")
  screen.drawMap("map", x, y, 350, 200)
  
  if (hit) then
   screen.drawText("TÀ FUNCIONANDO",x , y, 30, 30, "rgb(0,255,0)")
  else
   screen.drawText("AINDA ND",x , y, 30, 30, "rgb(255,0,0)")
  end  
  //isso de setDrawScale pra poder desenhar as escalas
  //dependendo de pra onde o personagem esteja virado
  screen.setDrawScale(ghost.facing, 1)
  screen.drawSprite("ghost", ghost.x, ghost.y, 16, 16)
  screen.drawSprite("purple", purple.x, purple.y, 16, 16)
  screen.setDrawScale(1,1)
  touchKeys.draw() 
end

Post a reply

Progress

Status

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