View Single Post
  #2  
Old 09-05-2005, 08:06 PM
Torankusu_2002 Torankusu_2002 is offline
'been round.
Torankusu_2002's Avatar
Join Date: Nov 2001
Posts: 1,246
Torankusu_2002 is on a distinguished road
i haven't scripted with GS2 yet but for the most part i understand what you are trying to do.

but, I think you might also have to check for the keypressed if you want to check for the keydown2, not do them at different times and use a timeout and check the the this. to tell if to check if the key is pressed.

I've never had the problem you're having with keypressed.

example in newfeatures:
NPC Code:

if (keypressed) {
code = strtofloat(#p(0));
if (code==keycode(1,false)) message on;
else if (code==keycode(2,false)) message off;
}


i know it's keycode, but it might be of some use to you too?
__________________
torankusu's
Reply With Quote