View Single Post
variables
Old
walleyewilly
Junior Member
 
walleyewilly's Avatar
 
Status: Offline
Posts: 9
Join Date: Mar 2012
Location: youngstown
Default variables - 04-13-2012, 08:04 PM

Hi Dakota:

I am experimenting with the variables as you instructed and I can tell I'm on the right path, but I still am a bit confused. I created a world number variable of 1. I then wrote an if/else statement in which when the variable changes to 2 and triggers another method, else repeat the current method. Then in event handler i set key to trigger the variable to change to 2. However, even when the variable has moved beyond the variable of two later in the program, I can still hit the prior event handler key and it will retrigger the former method. What am I doing wrong. Also what is the difference between incrementing a variable by some number and just setting that variable to a number. Thanks, Willy
   
Reply With Quote