|
Post by davidzx on Mar 26, 2024 18:44:29 GMT
Supposing there is no floor under a ladder, Is it possible to jump down of the ladder? Thanks
|
|
mas
Processing Plant
Posts: 28
|
Post by mas on Mar 28, 2024 11:41:45 GMT
Do you mean if you have something like (hopefully this ASCII art will work) |_|=== |_| |_| |_|
no floor ===== do you mean if you press down you drop off the end of the ladder (ie. fall) or do you mean if you press jump + direction you jump left/ right? Off the top of my head; if you're using LADDERABOVE / LADDERBELOW to check, then my expectaction is that you'd press down, AGD will check if the next block is a ladder and then stop you moving down. I think if you use CANGODOWN it should see the emptyblock and allow you to drop off... but I've not tried it. I'd probably have something (code off top of my head, not checked) IF KEY DOWN IF LADDERBELOW SPRITEDOWN ELSE IF CANGODOWN SPRITEDOWN ENDIF ENDIF ENDIF
|
|