The script event is a great way to customize your game

Talk about making games.

How much scripting do you use?

none or I avoid it
1
5%
a tiny bit or only when i must
1
5%
Moderate use - I'd like to know more - mixed use
6
29%
quite a bit or I'd rather do the whole game in script
6
29%
Total or I avoid the quicker ways
7
33%
 
Total votes : 21

The script event is a great way to customize your game

Postby Fuzzy » Tue Jul 24, 2007 8:59 pm

So i am curious, how much do you use it?
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

Postby supa-tails » Fri Jul 27, 2007 4:35 pm

I use the ones I KNOW how to use, otherwise, I'm cluless! :D
................................................................................................ www.freewebs.com/thebiverse .....................................................................................




c'ya on the other side
User avatar
supa-tails
 
Posts: 269
Joined: Fri Jul 27, 2007 3:03 pm
Location: In an aliens tummy... Or in cumming Georgia USA
Score: 17 Give a positive score

Postby DocRabbit » Mon Jul 30, 2007 8:31 pm

I actually prefer to use the scripting. The quick ways are nice, but when it comes to debugging it, it is much easier to find the problem if all is done in scripting.
User avatar
DocRabbit
 
Posts: 114
Joined: Fri Oct 27, 2006 2:56 am
Score: 10 Give a positive score

Postby pavel329 » Tue Jul 31, 2007 1:41 am

the script is better,but why is there not a keydown function?
Drugs r bad.
Mgaay?

Image
User avatar
pavel329
 
Posts: 269
Joined: Thu May 25, 2006 2:05 pm
Location: Behind you
Score: 5 Give a positive score

Postby Game A Gogo » Tue Jul 31, 2007 1:53 am

pavel329 wrote:the script is better,but why is there not a keydown function?

it is possible doing a keydown function in the script!
Repeat action:
Code: Select all
char*key=GetKeyState();
if(key[KEY_LEFT]==1)
{
    //action to be repeated every frame
}

and for not repeat usage
Code: Select all
char*key=GetKeyState();
int No_Repeat;
if(key[KEY_LEFT]==1 && No_Repeat==0)
{
    //action not to be repeated
    No_Repeat=1;
}
else
{
    No_Repeat=0;
}


That should do it :D

remeber you can change the KEY_LEFT to another key, look in the script reference offered whit GE
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 arcreamer » Tue Jul 31, 2007 3:34 am

i dont understand that script u just posted game a go, can i describe it for me a little please? im still learning
arcreamer
 
Posts: 398
Joined: Tue Jul 03, 2007 4:08 pm
Score: 9 Give a positive score

Postby automail10 » Wed Aug 01, 2007 12:22 am

i only use it when i must.
(the move actor event wont work.)
Back
User avatar
automail10
 
Posts: 280
Joined: Sun Jun 03, 2007 11:30 pm
Location: On a pancake on a bunny.
Score: 5 Give a positive score

Postby Game A Gogo » Wed Aug 01, 2007 2:11 am

arcreamer wrote:i dont understand that script u just posted game a go, can i describe it for me a little please? im still learning

It will check if a certain key is pressed hwit the if statement since key contains all array of keys, and have a value of 0 and 1, 1 being pressed.
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 Fuzzy » Wed Aug 01, 2007 2:52 am

automail10, do you mean the Moveto event? be aware that there is moveto and MoveTo as well. one is for pixel drawing, and the other is to move actors.
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


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest