Discord
Login
Community
DARK THEME

Why isnt my character on the screen?

draw = function() //set up screen screen.clear() screen.drawMap("level1"0,0,368,200) //draw the player screen.drawSprite( player,0,0,25,25) screen.drawSprite( monster,0,0,25,25)

end

draw = function() 
  //set up screen 
  screen.clear() 
  screen.drawMap("level1",0,0,368,200) //draw the player 
  screen.drawSprite( "player",0,0,25,25) 
  screen.drawSprite( "monster",0,0,25,25)
end

was : screen.drawMap("level1"0,0, ...

should be : screen.drawMap("level1",0,0, ...

If player and monster are not variables containing sprite names but rather sprite names should be passed to the function in quotes, then they are treated as string variables.

was: screen.drawSprite( player,0,0,25,25)

should by : screen.drawSprite( "player",0,0,25,25)

Post a reply

Progress

Status

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