Page 1 of 1

Basics of a platformer - script help

PostPosted: Sun Dec 20, 2009 8:05 pm
by drcjboduma
Hi,

I'm attempting to follow the basics of a platformer tutorial but keep getting an error with the draw actor script. I get an key_shift error and also a } expected error I have tried a number of things, but cannot get the script to work. Any help would be much appreciated.

Tutorial: http://game-editor.com/Basics_of_a_platformer


Thanks

CJ

Re: Basics of a platformer - script help

PostPosted: Sun Dec 20, 2009 11:44 pm
by DST
My fault CJ. I never tested that script out when i wrote it....

The } problem is right at line 14, the line before the "key_SPACE" , add another }
Again on line 27, the line before key_Right, add another }

Change the line 'key_SHIFT' to "key_RSHIFT"

And the script should work. It's a bit complex, and there are other ways to do it.

There was only a stub there that didn't explain much so one night several months ago i filled in a few of the stubs, just typing like mad.

Usually i'm pretty good at testing my scripts before posting them, but i typed a lot that night. Sorry for the confusion!

Here is a much simpler demo that works much better.

platformdino.zip
(207.08 KiB) Downloaded 53 times

Re: Basics of a platformer - script help

PostPosted: Mon Dec 21, 2009 7:45 pm
by drcjboduma
That's great, thanks very much for your help and work.

Cheers

CJ