How can I do the F2-effect?

Non-platform specific questions.

How can I do the F2-effect?

Postby Troodon » Sat Jan 21, 2006 8:45 pm

How can I do, that when I press the F2 (for example), the game rebegins?
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby Game A Gogo » Sat Jan 21, 2006 8:48 pm

use the loadgame and put the same game.
ex.: LoadGame("MyGame.ged");
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

Postby Troodon » Sat Jan 21, 2006 10:06 pm

Thanks.
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby Troodon » Thu Jan 26, 2006 7:36 pm

I wrote the code in F2-button:
LoadGame("SI.ged");

but there is something strange happening when I press the button. The game restarts correctly but all the text-actors and counters dissappear. Why?
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby Game A Gogo » Thu Jan 26, 2006 8:50 pm

thats normal and the tile actor should disapear too, when you export, it will all fine.
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 General

Who is online

Users browsing this forum: No registered users and 1 guest

cron