graphics.drawRect doesn't work.

  • powder_is_epic
    7th May Member 0 Permalink

    Here is my code:

    1.   graphics.drawRect(600, 11, 15, 15)
    2.   graphics.drawText(600, 11, "SETTINGS")
    The rectangle AND text does not show up at 600, 11, and cannot be found anywhere on the screen.
    I tried putting it at 0, 0, but it just doesnt show up. I also tried using fillRect, and that didn't work either.
    Please help because I have no idea why this just wont work. -- why did i write that its obv that i have a problem.
     
    Edited once by powder_is_epic. Last: 7th May
  • LBPHacker
    7th May Developer 1 Permalink
    Are you calling this from an event.TICK handler? They get overdrawn by other stuff if you call them earlier or later.
  • powder_is_epic
    7th May Member 0 Permalink

    I'm not so i kinda dont know whats going on here. ATM that is litteraly ALL my code.

    Edited 3 times by powder_is_epic. Last: 8th May