CreateObjectOnScreen issues

james_dean

New member
Hi, first post here, but I've been lurking for a while.

Whenever I try to create a new object for various things, it's really inconsistent. I wrote this code to create an object above the player's head (Zelda style), which looks good to me:

Code:
	LDX player1_object
	LDA Object_x_hi,x		
	ADC #$04
	STA temp1
	
	LDA Object_y_hi,x		
	SBC #$10
	STA temp2
	LDA Object_screen,x
	STA temp3
	CreateObjectOnScreen temp1, temp2, #$09, #$01, temp3

But it only works when I'm walking up or left. If i'm walking down or right, it doesn't create a visible object. It's driving me nuts! Does anyone know what I'm missing here? It's for a pickup, so I've made the bounding box tiny so it doesn't get instantly picked up again.
 

dale_coop

Moderator
Staff member
The 4.5 has a a few issues/bugs... the one you have might be one of them.

You should share that topic on FB and mention JoeGranato... he could check.
 
Top Bottom