Draw Line Function Broken

alcas

  • Posts: 28
When i use the drawline method in my if statements, only the first one activates it seems while the other drawline methods are completely null. When I take the drawlines out of the if statements it does work. I've used a kill actor method to check if the if statements are working and yes they all work. What is going on here?

Sunflower

  • Posts: 591
Could you please provide the screen of behaviour? Perhaps it's something with if statements which is wrong? O.o'

Also, check the console during the game (by pressing tilde: ~, which is next to 1, under Escape key, above tab) and try printing some statements in the drawing. It's possible that it'll be spammed with "ERROR: null object" as well. O.o'

alcas

  • Posts: 28
Oh ThankS! I used the tilde button and it gave me a ton of null object references. the problem was that it was trying to kill my button mutiple times in the drawing method.