Basics of a platformer - script help

Non-platform specific questions.

Basics of a platformer - script help

Postby drcjboduma » Sun Dec 20, 2009 8:05 pm

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
drcjboduma
 
Posts: 2
Joined: Sun Jul 12, 2009 7:07 pm
Score: 0 Give a positive score

Re: Basics of a platformer - script help

Postby DST » Sun Dec 20, 2009 11:44 pm

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 54 times
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score

Re: Basics of a platformer - script help

Postby drcjboduma » Mon Dec 21, 2009 7:45 pm

That's great, thanks very much for your help and work.

Cheers

CJ
drcjboduma
 
Posts: 2
Joined: Sun Jul 12, 2009 7:07 pm
Score: 0 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron