Think like a computer

The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
edited June 2012 in Working with GS (Mac)
Here is what I notice. Many GS users seem to forget that even though GS is a GUI based programing environment, it is still a programing environment. When programing YOU have to think like a computer. A computer is stupid and it only does what YOU tell it to do and it does it in the exact order YOU tell it. So if YOU change an attribute to true, some where YOU also have to tell it to change back to false, it doesn't automatically do that. If YOU want an actor to move YOU have to tell it when to move, where to move and how fast to move. The code in an actor happens in the order YOU place it in the stack and the same when YOU stack stuff in a rule. Learn to look at your code and ask what is happening when. If YOU put a reset scene behavior before other code say a change attribute behavior the computer executes the reset scene and never makes it to the next behaviors below it. why because it's a stupid computer and it did exactly what YOU told it to do. By listing the reset first YOU told the computer to do that first and when reset happens it resets before it can even get to that next code. GS doesn't automatically do anything other than do the proper code verbiage in the background so YOU don't have to learn where all the ; and () go. That's it, it doesn't fill in the blanks in the logic YOU leave undefined. As a control systems analyst for 27 years, yes it's a lot of work to dissect how all the logic interacts but what's worth doing that doesn't take work. Get past the GUI in your mind and look at it as logic and remember your code is only as smart as YOU are period.

Comments

Sign In or Register to comment.