Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
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
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:13 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.