Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / My asteroid coding wont build

Author
Message
Carlass92
11
Years of Service
User Offline
Joined: 24th Aug 2011
Location: UK
Posted: 24th Aug 2011 18:23
- comes up with user function declaration must us no space, no numerical first character and must include a set of brackets.

i am confused and need help

CG

CG

Attachments

Login to view attachments
Phaelax
DBPro Master
19
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 25th Aug 2011 18:48
The error message sounds pretty clear to me. The key words to note here are "no space". You have a space between your function name and the parenthesis. Also, "endfunction" is one word and not two as you've written it.


All the functions you're calling you've created with spaces in them, you can't have spaces in function names.

Carlass92
11
Years of Service
User Offline
Joined: 24th Aug 2011
Location: UK
Posted: 26th Aug 2011 16:28
Thanks, i'm new to this so there is probably going to be more questions asked lol x

CG
Darkzombies
11
Years of Service
User Offline
Joined: 25th Dec 2010
Location: In multiple tabs, most likely youtube.
Posted: 9th Oct 2011 10:04
.gifs work? or is that your problem?

"Insert funny coding-related joke here"
Grog Grueslayer
Valued Member
17
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 10th Oct 2011 05:30
I don't think .gif works anymore... especially if it's a .gif animation.

Carlass92, you should be using .png for all your graphics. .pngs allow us to use transparencies and keep the colors exactly as they started... .jpgs always change the colors so they're horrible for games.

Login to post a reply

Server time is: 2022-12-09 15:02:53
Your offset time is: 2022-12-09 15:02:53