I finally get it xD (Voids and stuff)

Game Editor comments and discussion.

I finally get it xD (Voids and stuff)

Postby Hblade » Sun Jan 23, 2011 3:33 am

After working on Level 2 of Silver the hedgehog, I come to notice something. Making voids really DOES save you a lot of time O____o DUDE thanks to those I gained so much time on the game xD

Just thought I'd share that xD

MAKE DA VOIDS XD
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: I finally get it xD (Voids and stuff)

Postby Game A Gogo » Sun Jan 23, 2011 4:59 am

image functions that returns something:
Code: Select all
variable=function();

Code: Select all
int/double/float/char/char* function()
{
    //code
    return SOMETHING
}

note: return must be the LAST thing the function runs, and it returns whatever you choose it to be, if you want an int, than you'd do int function(){return 10;}, if you want a string, you'd do char* function(){char* STRING;strcpy(STRING,"Rawr"); return STRING;}
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest