game academy looping

Creating Games? Developing something for fun?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
LUR30
Posts: 4
Joined: Tue Mar 18, 2014 6:11 pm

game academy looping

Post by LUR30 » Sun Mar 23, 2014 10:19 pm

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.

Klaus
Posts: 13871
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: game academy looping

Post by Klaus » Mon Mar 24, 2014 4:04 pm

Hi LUR30,

do you really have this handler named "activatescreenupdates" in the card or stack script?


Best

Klaus

LUR30
Posts: 4
Joined: Tue Mar 18, 2014 6:11 pm

Re: game academy looping

Post by LUR30 » Tue Mar 25, 2014 9:02 pm

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.

LUR30
Posts: 4
Joined: Tue Mar 18, 2014 6:11 pm

Re: game academy looping

Post by LUR30 » Tue Mar 25, 2014 9:28 pm

Could it be that I'm using the newest version of live code and maybe that is affecting the code somehow?

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: game academy looping

Post by Simon » Wed Mar 26, 2014 12:15 am

I think more accurately to what Klaus asked is,
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!

sefrojones
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 447
Joined: Mon Jan 23, 2012 12:46 pm

Re: game academy looping

Post by sefrojones » Fri Mar 28, 2014 7:39 pm

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
Attachments
GameLoopTest.zip
(937 Bytes) Downloaded 256 times

Post Reply

Return to “Games”