September 7, 201015 yr I have to keep track of shots on goal in a hockey game. I want to be able to have a field count up by one every time I press a button. Is that possible?
September 7, 201015 yr Create this script and attach it to a button: Set Field [ game::score; game::score + 1]
September 7, 201015 yr Author Thank you. I don't think I know as much about FM as you may think! If I create this script and attach it to a button, where does the counting happen? How do I direct the "+1" to a field?
September 7, 201015 yr I suggest you read these two previous threads: http://fmforums.com/forum/showtopic.php?tid/216178/post/362915/#362915 http://fmforums.com/forum/showtopic.php?tid/213573/
September 7, 201015 yr Author Sorry, I read them but I don't get it. Maybe the solution is beyond me. I need a simple outcome - a field whose value increases by 1 every time I press a button - but it seems the path to it is quite complex.
September 7, 201015 yr No, it is very simple - but I suggested you read those threads in order to understand that this would not be a good solution. There are also demo files in these threads and perhaps you should take more than 10 minutes to peruse them.
September 7, 201015 yr Author I did take the time but I don't follow what they are saying. I get that it may seem simple to you, but I am not a natural programmer so what they are saying is over my head. If there is a step by step solution somewhere, I am happy to follow it.
Create an account or sign in to comment