Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Stranga on Fri 26/04/2019 07:17:51

Title: Count how many times a key has been pressed?[SOLVED]
Post by: Stranga on Fri 26/04/2019 07:17:51
Hey everyone, I want to make an easter egg mechanic in my game where you would have to search a hotspot say like 50 times to get a special item(Big fat wink :wink:). Is there a way do do this? If not I 'll have to find some other way. Thanks in advance for your help :)
Title: Re: Count how many times a key has been pressed?
Post by: Matti on Fri 26/04/2019 09:20:33
Why not just increase some variable everytime the hotspot is searched, if you already have an event for that? Do you really need to count the number of times a key has been pressed?
Title: Re: Count how many times a key has been pressed?
Post by: Stranga on Fri 26/04/2019 10:08:54
Sometimes I don't know why I can't think of simple solutions like that. Must be a mind block. Thank you very much @Matti! :)