Scripting, Code & Interaction: Difference between revisions

m
*>SSH
Line 111: Line 111:
'''FaceLocation()''' will only allow a character to face directions on which (s)he can actually walk. So if you point to a non-walkable-area, then you're out of luck.
'''FaceLocation()''' will only allow a character to face directions on which (s)he can actually walk. So if you point to a non-walkable-area, then you're out of luck.


Also, the change in character direction will only be visible when the screen is refreshed (when a gameloop is advanced). If you want the character to change his direction fully and quickly (e.g., making a turn-around movement, place several '''FaceLocation()''' commands in a row (or use it wthin a '''while()''' loop, etc.) and make sure you put a '''Wait(1);''' line after each of these commands to ensure the screen is updated after each turn.
Also, the change in character direction will only be visible when the screen is refreshed (when a gameloop is advanced). If you want the character to change his direction fully and quickly (e.g., making a turn-around movement, place several '''FaceLocation()''' commands in a row (or use it within a '''while()''' loop, etc.) and make sure you put a '''Wait(1);''' line after each of these commands to ensure the screen is updated after each turn.


==Using "GetMP3posMillis()" always returns "0"==
==Using "GetMP3posMillis()" always returns "0"==
Anonymous user