Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: Help needed  (Read 2467 times)
iOrbit
Community Member
*
Posts: 11


« on: July 10, 2016, 05:48:13 AM »

Hi guys,

probably a stupid question and has a simple answer.

i call a INI file to set AddRock + 1 when mouse is clicked to place a rock

this works fine how ever this issue is when i open the ini folder there as been 34 + rocks created with that 1 mouse click.

i only want it to add 1, i assume it does this because of the DoLoop, i have set it out side of the engine loop but still get same issue....

any ideas ?


 
Logged
KamiGazz
Community Member
*
Posts: 103


« Reply #1 on: July 13, 2016, 11:37:44 PM »

it indeed sounds like you are holding your mouse button for 34 frames! Smiley

you will have to manage if you want a one shot click event or a continuous firing event....

either you use the onClick event of whatever mouse input system you use, of implement that check yourself with a flag reset on mouse up button of something like that.

cheers
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks