Main
Projects
Art
Music
Scripting
LiveJournal
Forum
Links
Run Key
by Uncommon

This script will allow your character to run if the X key is held. (Don't like the X key? It's easy enough to change.) The script needs to be running in the background -- I think "on keypress" (in Map Settings) will make it work.


script,Run,begin 
if,begin 
key is pressed (key:X) #change this to choose your own key
end 
then,begin 
if (hero is walking (me)==false) 
then,begin 
set hero speed (me,10) 
end 
end 
else,begin 
if (hero is walking (me)==false) 
then,begin 
set hero speed (me,4) 
end 
end 
end 

Site layout (c)2000 Jennifer Raby. Used by permission.