help for you on scripting if,and while functions

Game Editor comments and discussion.

help for you on scripting if,and while functions

Postby DarkParadox » Thu Jan 03, 2008 2:40 am

C code chart for game editor
< Smaller than
<= Smaller or equal to
== Equal to
!= Not equal to
> Larger than
>= Larger or equal to
&& And
! Not
|| Or
Last edited by DarkParadox on Tue Jan 08, 2008 10:42 pm, edited 1 time in total.
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score

Re: help for you on scripting if,and while functions

Postby Bee-Ant » Fri Jan 04, 2008 2:24 pm

you forgot one thing :
|| or
right?
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: help for you on scripting if,and while functions

Postby DarkParadox » Fri Jan 04, 2008 2:32 pm

i deleted that because i didn't think it would work in game editor
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score

Re: help for you on scripting if,and while functions

Postby j2graves » Fri Jan 04, 2008 6:45 pm

this will be helpful to me, thanx!
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: help for you on scripting if,and while functions

Postby Bee-Ant » Sat Jan 05, 2008 8:26 am

diormeh wrote:i deleted that because i didn't think it would work in game editor

You're wrong!!! :x
I have used it in mostly my games...
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: help for you on scripting if,and while functions

Postby DarkParadox » Tue Jan 08, 2008 10:41 pm

i'll fix it.
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score

Re: help for you on scripting if,and while functions

Postby GuitarManGuitar » Fri Jan 11, 2008 11:56 pm

how do you do the "or" thing? because it isn't working for me... :?: :?: :?:
GuitarManGuitar
 
Posts: 31
Joined: Thu Oct 25, 2007 11:57 pm
Score: 0 Give a positive score

Re: help for you on scripting if,and while functions

Postby makslane » Sat Jan 12, 2008 12:28 am

Code: Select all
if(somevariable > 0 || somevariable < 10)
{
 //Your code here
}
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Re: help for you on scripting if,and while functions

Postby Game A Gogo » Sat Jan 12, 2008 12:33 am

Code: Select all
if(Condition1<Condition2 || Condition1==10)
{
    //Action
}


If "Condition1<Condition2" or "Condition==10" are true, the action will happen

EDIT: Makslane beat me to it xD
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

Re: help for you on scripting if,and while functions

Postby GuitarManGuitar » Sat Jan 12, 2008 8:42 pm

tyvm
GuitarManGuitar
 
Posts: 31
Joined: Thu Oct 25, 2007 11:57 pm
Score: 0 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron