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 / variable increment problem

Author
Message
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 8th Feb 2013 11:09



I am trying to get brickimage to add one or minus one on press of relevant button, pb is to ad and mb is to minus, but it seems it never lands on the value of 2, where am i going wrong please?
tnx for any help

Hail to the king, baby!
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 8th Feb 2013 11:18
You need to use GetVirtualButtonPressed or GetVirtualButtonReleased. These only trigger once, then return to zero again.

GetVirtualButtonState will keep returning 1 every cycle, while you are pressing it.

shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 8th Feb 2013 11:40
hah!
thanks, boy it seems I have a lot to learn, but rest assured it is all getting stored in my own memory banks!

Hail to the king, baby!

Login to post a reply

Server time is: 2024-11-24 08:31:37
Your offset time is: 2024-11-24 08:31:37