- Joined
- Dec 10, 2020
- Messages
- 6
- Reaction score
- 6
- First Language
- English
- Primarily Uses
- RMMV
Hey All!
My inventory screen is a separate map to which the player is transferred and returned- creating an 'opening' and 'closing' effect. For now I'm using 'tab' as the key that will transfer the player (open/close the inventory screen.) I've got everything working fine with the transfer and the return with one frustrating exception- for some reason the *very first* time tab is pressed, nothing happens. On the second keypress it works perfectly and with no delay/lag, and from then on any subsequent times it works perfectly as well- including returning from the Inventory screen map using the same call. I've tried swapping between Input.isTiggered and Input.isPressed, and they both operate the same way precisely, meaning they work as intended every other time except the very first time.
It seemed likely to me that one of the other events on the map might be causing this initial delay, so I also tried it from an entirely clean map (event-free) to test it, and it still behaves exactly the same way. First time tab is pressed nothing happens, then every other time it works fine. It needs to run parallel (for the record it does the same thing set to autorun even though the player can't move otherwise) but I tried switching around the priority, and it acts the same way.
Anyone had any similar issues, or have any thoughts? I know it's very likely I could be missing something simple, so I appreciate your patience in advance if that is the case!! Thanks so much, all, for your time/help!!
My inventory screen is a separate map to which the player is transferred and returned- creating an 'opening' and 'closing' effect. For now I'm using 'tab' as the key that will transfer the player (open/close the inventory screen.) I've got everything working fine with the transfer and the return with one frustrating exception- for some reason the *very first* time tab is pressed, nothing happens. On the second keypress it works perfectly and with no delay/lag, and from then on any subsequent times it works perfectly as well- including returning from the Inventory screen map using the same call. I've tried swapping between Input.isTiggered and Input.isPressed, and they both operate the same way precisely, meaning they work as intended every other time except the very first time.
It seemed likely to me that one of the other events on the map might be causing this initial delay, so I also tried it from an entirely clean map (event-free) to test it, and it still behaves exactly the same way. First time tab is pressed nothing happens, then every other time it works fine. It needs to run parallel (for the record it does the same thing set to autorun even though the player can't move otherwise) but I tried switching around the priority, and it acts the same way.
Anyone had any similar issues, or have any thoughts? I know it's very likely I could be missing something simple, so I appreciate your patience in advance if that is the case!! Thanks so much, all, for your time/help!!
Attachments
Last edited: