|
Post by nra on Apr 12, 2019 17:42:45 GMT
Hi there)
What is the most optimal way to have different jumps--LONG and HIGH for the player and four jumps for various enemy types?
TY
|
|
|
Post by Jonathan Cauldwell on Apr 12, 2019 20:25:28 GMT
For jumps you have three choices in MPAGD. Firstly, there's a TABLEJUMP command that is compatible with AGD's JUMP command. Everyone should be familiar with that routine by now. The second option is to use the new JUMP command, which takes a parameter and can give a range of different jumps, eg JUMP 5 or JUMP 8. Thirdly, you could code the jump routines yourself with READ and DATA. This last option is most flexible but would take the most work. You'd need to READ the vertical move from the DATA table, then move up or down one pixel at a time in a loop, checking the player could move in the relevant direction each time.
|
|