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 04-17-2006, 04:53 AM
Bl0nkt Bl0nkt is offline
Era Developer
Bl0nkt's Avatar
Join Date: Mar 2005
Location: Pennsylvania
Posts: 1,589
Bl0nkt will become famous soon enough
Send a message via AIM to Bl0nkt
Keys

Well, I don't think keydown2 and keycode are all I need to know for dealing with pushing keys. I'm trying to do something where as you hold down f, it shows an animation, but if you release f, it shows another. I'm just looking for the right way to do this.
Reply With Quote
  #2  
Old 04-19-2006, 02:22 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
PHP Code:
if(created) {
  
timeout 0.05;
}

if(
timeout) {
  if(
keydown2(keycode(f), false) || keydown2(keycode(F), false)) {
    
// Play Animation One
  
} else {
    
// Play Animation Two
  
}

  
timeout 0.05;

Something like that? Not sure if that's the correct usage of keycode() though.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #3  
Old 04-19-2006, 05:11 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
keydown2(keycode,ignorecase);

When ignorecase is false, it only takes that exact key.
When ignorecase is true, it takes any variation of that key (f, f+shift, f+ctrl)
Reply With Quote
  #4  
Old 04-20-2006, 02:11 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Ah, my bad. Wasn't thinking when I wrote that example
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
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 03:31 AM.


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