Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Number of clicks on virtual button

Author
Message
Cantoná
4
Years of Service
User Offline
Joined: 14th Jun 2020
Location:
Posted: 14th Jun 2020 09:35 Edited at: 14th Jun 2020 09:52
Hello,

I'm using this code to register the number of clicks on a virtual button, is it possible to set an individual counter for each virtual button in the same scene?


Thanks

[MOD EDIT]Inserted code tags around your code. Please use them yourself in any future posts
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 14th Jun 2020 10:29
Quote: "is it possible to set an individual counter for each virtual button in the same scene? "

Yes
you would need some kind of variable for each button
take a look at arrays https://www.appgamekit.com/documentation/guides/12_array_changes.htm

fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk

Login to post a reply

Server time is: 2024-11-22 04:51:11
Your offset time is: 2024-11-22 04:51:11