Page 1 of 2
problem with restarting a game
Posted:
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!
Posted:
Sat Feb 24, 2007 10:28 pm
by Sgt. Sparky
- Code: Select all
loadGame(FRAGGER.exe);
remember to export the Game as FRAGGER
Posted:
Sat Feb 24, 2007 11:31 pm
by UltimatHedgehog
undeclared identifier loadGame
Posted:
Sun Feb 25, 2007 12:09 am
by NUTINC
Thank you!
Posted:
Sun Feb 25, 2007 12:11 am
by Sgt. Sparky
you are welcome
Posted:
Sun Feb 25, 2007 12:12 am
by UltimatHedgehog
didnt work for me why
Posted:
Sun Feb 25, 2007 12:17 am
by Sgt. Sparky
try loadGame or LoadGame or Loadgame
Posted:
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
Posted:
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
Posted:
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);
Posted:
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.
Posted:
Sun Feb 25, 2007 12:48 am
by UltimatHedgehog
so i need quotations then
Posted:
Sun Feb 25, 2007 12:52 am
by Sgt. Sparky
yup
it is Real Armour!
Posted:
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
Posted:
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*
Do you have MSN?