View Single Post
  #19  
Old 03-30-2001, 06:09 AM
Thak2 Thak2 is offline
:]
Join Date: Mar 2001
Location: BC
Posts: 1,344
Thak2 is on a distinguished road
Send a message via AIM to Thak2
Ok, first for the keydown to work best with what you want to do you would either have to freeze the player or disable default movement (animations).

You could make a full functioning script of it with freezeplayer except that freezeplayer makes it so the player doesnt detect anything such as warps...
so disabledefmovement must be used, as it turns off the default animations and movement.

With that set use something like this as an example of one movement:
NPC Code:

if (timeout && keydown(0)) {
playerdir=0;
playery -= 0.5;
setani bomy_walk,;
timeout=0.05;
}


keydown 0 is up as you should know, and the player moves approximetly 0.5 tiles every timeout which is same as normal... just set your beginning code which disablesdefmovement and sets the player head to a bomy head and a timeout, then add onwall code, and you have basic movement transformation script...

oh and what parts of my script didnt work? it should...
Reply With Quote