![]() You need to have Set Variable 0005 = 0 before the Key Input Proc(0005:Defend). It looks like you have a problem getting the defend to turn off at all, and not having problems with the holdkey registering your input/lack of input. Find games with Steam keys made with RPG Maker like LISA: The Painful RPG, Demonheart: Hunters, LISA the Joyful + OST, THERE SWINGS A SKULL: GRIM TIDINGS. ![]() ![]() if the player has the item you want them to have, it'll work, and if they dont, it wont. Need a locked door Want your players to find a key to unlock it Then look at this :p Short, simple, and to the pointAll credit and ownership rights belo. Edit: I just looked at your code, and I don't really see where you're having the defend turn off at all. Select Key Item 0000:name the next thing you want to do is create a conditional branch, this will basically make it so that. I'm pretty sure that's what Cherry meant. After 3 cycles, which is near instant, you'll release defense. ![]() Have a separate check for whether the key is STILL being held Parallel Process If Variable(release counter) >= 3 - Set Variable (release counter) = 0 - call whatever code for stop defending Set V(Defend) = 0 Key Input Process V(Defend) If V(Defend) = 2 - Set V(release counter) = 0 Else - Add V(release counter) +1 Wait 0.0 So every time through, if you're not holding LEFT, +1 to the counter for releasing defense. Author=JustRob But how would you be sure that the key is really released if it reaches 3? If you're asking what Cherry just said. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |