Page 1 of 1
game academy looping
Posted: Sun Mar 23, 2014 10:19 pm
by LUR30
I'm in the game academy trying to do my first game loop. I've copied the code exactly as the video describes, however I keep getting an error when I input "activateScreenUpdates" into the code. Here is the error I'm getting:
card id 1002: execution error at line 20 (Handler: can't find handler) near "activatescreenupdates", char 1
any help would be greatly appreciated.
Re: game academy looping
Posted: Mon Mar 24, 2014 4:04 pm
by Klaus
Hi LUR30,
do you really have this handler named "activatescreenupdates" in the card or stack script?
Best
Klaus
Re: game academy looping
Posted: Tue Mar 25, 2014 9:02 pm
by LUR30
I have typed in literally everything that the video has. I have paused the video and gone back through the code to make sure that I have typed it all correctly. Every time it gets to this point, the videos code works perfectly, but mine does not. Still confused on this.
Re: game academy looping
Posted: Tue Mar 25, 2014 9:28 pm
by LUR30
Could it be that I'm using the newest version of live code and maybe that is affecting the code somehow?
Re: game academy looping
Posted: Wed Mar 26, 2014 12:15 am
by Simon
I think more accurately to what Klaus asked is,
Check your spelling carefully.
The error suggests that "activatescreenupdates" isn't there.
Simon
Re: game academy looping
Posted: Fri Mar 28, 2014 7:39 pm
by sefrojones
Hi LUR30,
So I just tested this game loop.
http://forums.runrev.com/viewtopic.php? ... olk#p79876
An it is working in livecode 6.5.2
It seems to be working fine, so you may have left something out of the script you copy\pasted. Check out the stack I've uploaded. It is just the game loop with an updatescreen handler that adds 1 to fld 1 everytime it is called.
Also, if you are using 6.6, maybe try rolling back to 6.5.2 and testing it.
--sefro