AND #%01000000
BNE solidMovingPlatform
solidMovingPlatform: ; It is a solid moving platform...
LDX player1_object
;LDA ObjectHeight,X
LDA selfCenterY ; I took this from the jump on enemy code...
;ADC #$02 ; I am not sure if that is really doing much lol, its still hard to tell
CMP otherCenterY
BCS dontJumpOnPlatform
LDA Object_y_hi,y ; This is an attempt to make the player be ON TOP
STA Object_y_lo,x ; Of the platform object.... it does not work correctly
LDA Object_status,x
ORA #%00000100
STA Object_status,x
LDA Object_movement,x
AND #%00001111
STA Object_movement,x
JMP AboveIsSolid ; Go to the collision code for the one way plat...
LDA Object_h_speed_lo,x
SEC
ADC Object_h_speed_lo,y
SEC
STA Object_h_speed_lo,x
Convoy_Avenger said:A lot of great work so far Wolf.
dale_coop said:Congrats WolfMerrik.
Looks great.
WolfMerrik said:I also, for the life of me, cannot get ANYTHING, monsters, game objects, etc, to move Up and Down, only Left and Right. Even with ignore gravity. No idea why!
Do you know what might be causing this?
I am assuming it has to do with "ignore gravity", but cant find why
dale_coop said:- onladder
I think you could find inspirations with those functionalities (jump scripts... or using onLadder set to #$01 should do the trick for up and down. But then you need to find a way to put back to #$00)
Craigery said:Just gotta say this is absolutely amazing! :shock:
jumpOnMonster:
LDX player1_object
;TXA
;STA tempx
;JMP playerWasHurtDuringCollision
;LDX player1_object
LDA selfCenterY
CMP otherCenterY
BCS dontJumpOnMonster
;;; JUMP ON MONSTER
LDX player1_object
LDA #$00
SEC
SBC #$04
STA Object_v_speed_hi,x
LDX tempx
;DeactivateCurrentObject
LDY tempy
WolfMerrik said:By making a few changes to HandleObjectCollisions_Platform_Simple.asm
I was able to make some SMALL progress lol
I used Flag 6 for the object, and added this code that handles it:
Code:solidMovingPlatform: LDX player1_object LDA #$00 SEC SBC #$01 ;;basically just push them up 1 STA Object_v_speed_hi,x JMP doneWithThisObjectCollision
To detect the flag, I added this code, right before the code that detects the player being able to jump on the monster flag:
Code:AND #%00100000 BNE solidMovingPlatform
The problem being, you cant jump off of it... I need to find a way to set the players position, and possibly even have the x position of the player move with the block.
It is a start!