HOME SCRIPTS RESULTS

(Last updated on; November 9, 2009 11:41 AM )

Basic movement Player movement
Movement is obviously one of the most important parts of a video game, but this
is a different kind of movement. This is pre-defined movement, movement that was decided when the game was being decided. These movements are usually a part of
thngs like, cut-scenes, special events, those sorts of things. The code for movement, once again, is kind of difficult. A basic code for movement would be....



#org $script
lock
faceplayer
message $talk
$talk 1 =(message here)
boxset 6
applymovement 0x0X ; #binary 0x12 0xFE
pausemovement 0x0000
release
end


Explanation



The "applymovement 0x0X" means that we are going to make X move, where X is the person number on the map. Then the code
goes on to "; #binary", make sure that is a SEMI-colon not a regular one. The "#binary" just tell the computer what's
going on, it's not really important to know, just that as long as it's there.
"0x12 0xFE"; "0x12" really should be "0xXX" where X is the hex number for that type of movement that you want.
You can download the file for movement hexes here. And "0xFE" just states that this is a movement of another player and not you

the "pausemove 0x0000" tells the computer to wait before continuing on with the script.

Now there is one more thing you can do to mdify the movement with a script, and that is to make the player be forced to follow another character. To do that, the code is....

#org $script
lock
faceplayer
applymovement $move
$move 1 = 0x0X ; #binary 0x12 0xFE
applymovement 0xFE $move
pausemove 0x0000
release
end

What's going on here is that the code is telling the system that the player is going to take on
the same movements as the previously stated movements. That's what is being said by "applymovement 0xFE $move"

[back]