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.
game academy looping
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: game academy looping
Hi LUR30,
do you really have this handler named "activatescreenupdates" in the card or stack script?
Best
Klaus
do you really have this handler named "activatescreenupdates" in the card or stack script?
Best
Klaus
Re: game academy looping
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
Could it be that I'm using the newest version of live code and maybe that is affecting the code somehow?
-
- VIP Livecode Opensource Backer
- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
- Location: Palo Alto
Re: game academy looping
I think more accurately to what Klaus asked is,
Check your spelling carefully.
The error suggests that "activatescreenupdates" isn't there.
Simon
Check your spelling carefully.
The error suggests that "activatescreenupdates" isn't there.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
-
- Livecode Opensource Backer
- Posts: 447
- Joined: Mon Jan 23, 2012 12:46 pm
Re: game academy looping
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
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
- Attachments
-
- GameLoopTest.zip
- (937 Bytes) Downloaded 256 times