Page 1 of 2

problem with restarting a game

PostPosted: Sat Feb 24, 2007 8:47 pm
by NUTINC
I am currently creating a game similar to the classic Frogger. I am trying to program the game so that when you die you can restart the game over. I have seen in other posts a loadGame() function but I don't know where that is either. Some one please help me.

P.S. the name of the game is FRAGGER!

PostPosted: Sat Feb 24, 2007 10:28 pm
by Sgt. Sparky
Code: Select all
loadGame(FRAGGER.exe);

remember to export the Game as FRAGGER
:D

PostPosted: Sat Feb 24, 2007 11:31 pm
by UltimatHedgehog
undeclared identifier loadGame

PostPosted: Sun Feb 25, 2007 12:09 am
by NUTINC
Thank you!
:lol:

PostPosted: Sun Feb 25, 2007 12:11 am
by Sgt. Sparky
you are welcome :D

PostPosted: Sun Feb 25, 2007 12:12 am
by UltimatHedgehog
didnt work for me why

PostPosted: Sun Feb 25, 2007 12:17 am
by Sgt. Sparky
try loadGame or LoadGame or Loadgame
:D

PostPosted: Sun Feb 25, 2007 12:34 am
by UltimatHedgehog
ok but now it says it about the name of my game and i had it exactly the same as the save file name Adventure of Me

it says
undeclared identifier Adventure

PostPosted: Sun Feb 25, 2007 12:36 am
by Sgt. Sparky
Rats, I do not know what the prob is...
Try what I said to try :D

PostPosted: Sun Feb 25, 2007 12:41 am
by UltimatHedgehog
i did LoadGame and it worked early but now im saying it doesnt recognise the name

make a blank game and on the veiw put key down f1 then
LoadGame(Adventure of Me.exe);

PostPosted: Sun Feb 25, 2007 12:47 am
by Sgt. Sparky
UltimatHedgehog wrote:i did LoadGame and it worked early but now im saying it doesnt recognise the name

make a blank game and on the veiw put key down f1 then
LoadGame(Adventure of Me.exe);

it is: LoadGame("Adventure of Me.exe");
you must put it to .exe first if you have not. :D

PostPosted: Sun Feb 25, 2007 12:48 am
by UltimatHedgehog
so i need quotations then

PostPosted: Sun Feb 25, 2007 12:52 am
by Sgt. Sparky
yup :D
it is Real Armour! :P

PostPosted: Sun Feb 25, 2007 1:00 am
by UltimatHedgehog
it accepted it but i exported and when i pressed f1 it went full sreen, screen went black then normal screen agian but still black

PostPosted: Sun Feb 25, 2007 1:04 am
by Sgt. Sparky
well, that is prob a prob with your comp.
*runs you through with my sword*
*pickes up your wooden sword and places it in your hand*
*runs away*
*puts on ArmOUR*
:P :D
Do you have MSN? :D