i just did System.out.println("an ID "+ java.util.Arrays.toString(pixels)); and thats what it gave me
Type: Posts; User: nightcrawler9001
i just did System.out.println("an ID "+ java.util.Arrays.toString(pixels)); and thats what it gave me
i got an ID [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
i dont get what i have to put in to see the contents do i put
System.out.println("[I@5474b4"+ java.util.Arrays.toString(pixels));
--- Update ---
or
System.out.println("[I@b04e98"+...
i dont get it?
so the pixels are [I@b04e98
and the
buffered image pixels are [I@5474b4
how do i fix that?
how would i do that? i no how to debug but idk how to see where its going
they are 16*16 and should i do system.out.println(pixels) in all the places it should be 1 by 1
--- Update ---
this is the data the pixels hold when they should be rendered [I@16551c5
oh sry im a "messy coder apperently"
so basicly i used the spritesheet class to make paths and the sprite class to get the sprites and in the screen class there is a public void render wich should...
i have multiple classes tho
--- Update ---
package ca.nightgames.dungeonRun;
import java.awt.Canvas;
import java.awt.Dimension;
how do i do that?
this is my first java game im making i tried to add tiles to the screen but i just get a black screen with no errors any advice? :confused: :confused:
:confused: