I'm trying to figure out how to make an enemy projectile come from the top of the screen. I modified the shoot straight code, but I cant seem to make it so the projectile comes from a static location on the Y axis. I basically want it to look like it's coming from the sky regardless where the enemy monster is (on the y axis). I can only get it relative to its position.
Any help is greatly appreciated
Code:
TXA
STA tempx
LDA Object_movement,x
AND #%00000111
STA temp3
TAY
LDA DirectionMovementTable,y
ORA temp3
STA temp3
;get offset
LDA Object_x_hi,x
CLC
SBC #$15
STA temp1
LDA Object_y_hi,x
CLC
SBC #$20
STA temp2
LDA Object_scroll,x
STA temp
CreateObject temp1, temp2, #$04, #$00, temp
LDA temp3
STA Object_movement,x
LDX tempx
Any help is greatly appreciated