Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Custom keybinding using FCU - Keyboard Plugin

Status
Not open for further replies.

Fynnmellex

Villager
Xy$
0.00
Hey there, I'm really new to this forum thing, so I apologize for every mistake I might make in advance (puppy eyes)
I'm having quite a hassle with the plugin mentioned in the title. Don't get me wrong, I think the plugin itself is absolutely great, I'm sure that I am the real problem, but anyway here's what I'm trying to do.
I want to bind a key ("M" in my case) to show the picture of a worldmap and after pressing the button again, making the picture vanish. I tried really hard, but the only thing I've accomplished so far was in making a common event, that would use two conditional branches to call the picture if the button is pressed and erase the picture when the button isn't pressed. To get the idea: I now need to hold the button pressed to keep the picture up. I'm happy, that i got it to work, but it isn't quite what I intended to do actually. So I was hoping, that maybe you could help me with this. I included the screenshots to help you see what I've done so far.

this picture shows the common event I've created for the worldmap. Ignore the worldmap 2 event, that is shown, that one isn't beeing used right now.common event worldmap.jpg

Thx alot and again, if I made any mistake I apologize and I hope that you'll notify me of it so I can avoid doing it again!
 

LTN Games

Master Mind
Resource Team
Xy$
0.01
I don't have time to test this out myself in MV atm, but have you tried isTriggered, instead of isPressed ? I'm pretty sure isTriggered will check if the key has been pressed & released then perform the actions, isPressed checks if the key is being pressed down.
 

Fynnmellex

Villager
Xy$
0.00
I don't have time to test this out myself in MV atm, but have you tried isTriggered, instead of isPressed ? I'm pretty sure isTriggered will check if the key has been pressed & released then perform the actions, isPressed checks if the key is being pressed down.
Yeah I tried that the first time I tested the plugin. It doesn't really do anything though. The image stays there or doesn't show up at all... Eivl said in the discussion for his plugin that I would have to " save the state of the key and use the keyTriggered" and that I should "make a switch for it when I open my map. and when I press the key again it will turn of the map and reset the switch" to get that toggle function I intend to but I haven't got the faintest idea how to accomplish that. I know how to use switches, but that one's too high for me (glee) (Note: I recited Eivl in the brackets, I hope he doesn't mind...)
 

LTN Games

Master Mind
Resource Team
Xy$
0.01
Alright I got a working version, I used a variable to know the current state of the key being pressed. Best described with an image so here you go.
KeyInput_showimage.png
 

Fynnmellex

Villager
Xy$
0.00
Oh my god, it worked! Thank you SO much!! I should've thought of putting in a variable... Well, seems I've still got LOTS to learn about using this maker xD thanks again, seriously. I had lots of headaches trying to get this to work and now it does! I'm so happy right now. I'll go and toggle the map on and off for the next few hours just for the fun of being able to :D by the way, there's another question I'd like to ask. right now, the common event is being called by a parallel event on my testmap. Any idea if it is possible to call this common event right from the startup without using events and does the common event stay activated once I called it or do I have to call it on every map anew? sry for bothering (hurt) nevermind. I figured it out. A switch on the startup map was all I needed.
 
Last edited:

LTN Games

Master Mind
Resource Team
Xy$
0.01
I'm glad I could help you out, since you're new here you probably never knew you could mark the post as best answer, so I did it for you. Anyways feel free to ask any questions you have here in the support forum, I'm usually watching it and will help out anytime I'm available.
 

Fynnmellex

Villager
Xy$
0.00
I'm glad I could help you out, since you're new here you probably never knew you could mark the post as best answer, so I did it for you. Anyways feel free to ask any questions you have here in the support forum, I'm usually watching it and will help out anytime I'm available.
Thanks again! I'll be sure to keep the best answer option in mind.
 

Fynnmellex

Villager
Xy$
0.00
no i do not mind! =) great you got it working! ;)
I truly need to thank you for that plugin again! It really is awesome to able to show up a map similar to Dragon Quest VIII (The only game with that function I can remember right now but I'm sure there are tons of others).
 
Status
Not open for further replies.
Top