Author Topic: About MSPED and ASPED opcodes.  (Read 2116 times)

Akari

  • *
  • Posts: 766
    • View Profile
About MSPED and ASPED opcodes.
« on: 2007-03-13 19:03:34 »
I working with entity movement using MOVE opcode now and because of that I encount MSPED opcode.
As I can see this is standart pair memory bank/2 bytes value. Any value larger than 0x600 will cause entity to run, otherwise it will walk. This opcode only has influence on MOVE type opcode and not change walking and running speed.

The ASPED seems to be exactly the same to me.

2 Synergy Blades: Aare you aprove this? Do you know what is the speed in MSPED are? Maybe this is fixed point value?

Synergy Blades

  • Guest
Re: About MSPED and ASPED opcodes.
« Reply #1 on: 2007-03-13 20:23:11 »
Okay, I've had a look and finally figured out the middle argument:

Argument 2: Fractional value, so 7F equates to 0.5.
Argument 3: Decimal value for speed.

This is quite cool, since you can set walk speeds that are inbetween, say, 3 and 4. Unfortunately this leaves argument 1... hmm. As far as I can tell, it's not a bank pair for the two arguments, as it is with most opcodes. Placing values into memory and then attempting to use the first argument as such just doesn't seem to work. I'll have another look later (in the middle of an essay...  :roll: ).

[Edit: 500th post. Yay  :-D]