a few questions

Game Editor comments and discussion.

a few questions

Postby Fojam » Tue Aug 04, 2009 4:12 pm

how do you do the if variable = 1 script setup?

is there a code to reset the game?
Last edited by Fojam on Thu Aug 06, 2009 4:29 pm, edited 1 time in total.
CLICK TO GIVE ME POINTS

My Latest Projects:
Super Smash Bros: viewtopic.php?f=6&t=12307 PLEASE help by making sprites!
User avatar
Fojam
 
Posts: 513
Joined: Thu Mar 19, 2009 10:02 pm
Location: under your bed!!!
Score: 69 Give a positive score

Re: if variable = 1

Postby Rux » Tue Aug 04, 2009 6:26 pm

Code: Select all
if(variable == 1)
{
//insert code here\\
}


Here.
I'm not good at coming up with signatures...
User avatar
Rux
 
Posts: 645
Joined: Sun Apr 29, 2007 9:26 pm
Location: Sitting on your moniter invisable.
Score: 35 Give a positive score

Re: if variable = 1

Postby Fuzzy » Wed Aug 05, 2009 8:53 am

Dont forget. You need two = not just one. Rux' code shows it correctly.
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Re: a few questions

Postby Fojam » Mon Aug 24, 2009 9:09 pm

well how do I completely restart the game by hitting a button or something?
CLICK TO GIVE ME POINTS

My Latest Projects:
Super Smash Bros: viewtopic.php?f=6&t=12307 PLEASE help by making sprites!
User avatar
Fojam
 
Posts: 513
Joined: Thu Mar 19, 2009 10:02 pm
Location: under your bed!!!
Score: 69 Give a positive score

Re: a few questions

Postby skydereign » Mon Aug 24, 2009 10:08 pm

You can reload the game, as in use the LoadGame function. This won't work if you are using tiles. You can also store all beginning positions, or similar, and reset all of them through use of a timer or variable. This is how you use the LoadGame function.
Code: Select all
LoadGame("gamePath");
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest