We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Im getting this error and I dont know really why:
processing.app.SketchException: java.lang.NullPointerException
at jycessing.mode.run.SketchRunner.convertPythonSketchError(Unknown Source)
at jycessing.mode.run.SketchRunner.access$300(Unknown Source)
at jycessing.mode.run.SketchRunner$3.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
It says NullPointerException
I just want to add several images as background. don't want them to move or anything just stay there.
door=PImage;
people=PImage;
def setup():
global people, door
people=loadImage("people.png")
image(people,200,200,50,50)
door=loadImage("open.png")
image(door,width/2,width/2,50,50)
def draw():
background(255)
what Im doing wrong? :-(
Answers
I answered my own question!