can you make a random comend on GE

Talk about making games.

can you make a random comend on GE

Postby Game A Gogo » Fri Jul 01, 2005 10:58 pm

Can you make a random comend like:
random();

if yes, how??
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 brutalDeluxe » Sat Jul 02, 2005 12:08 am

User avatar
brutalDeluxe
 
Posts: 43
Joined: Sun Dec 12, 2004 7:43 am
Score: 0 Give a positive score

Postby Game A Gogo » Sat Jul 02, 2005 12:17 am

But where do i put the comend line(Like the actions)
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 jazz_e_bob » Sat Jul 02, 2005 3:59 am

What are you trying to make?
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score

Postby Game A Gogo » Sat Jul 02, 2005 4:49 pm

A turret
Last edited by Game A Gogo on Sat Jul 02, 2005 4:54 pm, edited 1 time in total.
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 Game A Gogo » Sat Jul 02, 2005 4:52 pm

I want to make a turret shoots at Mainship sometime.

Like:

int dicetrow ( rand(6) + 1 );
{
Createactor(BlaBlaBla...)
}
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 jazz_e_bob » Sat Jul 02, 2005 10:02 pm

That's an easy one. :-)
Do the random timing with a randomised timer!

On Create Turret
Create Timer ( random/forever )

Then...

On Turret Timer
Create Turret Bullet

Demo here:
http://www.artsystems.com.au/game%20editor/randomTurretDemo.ged
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score

Postby Game A Gogo » Sat Jul 02, 2005 10:12 pm

Tanks very much, its just im not that good in script
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 jazz_e_bob » Sat Jul 02, 2005 10:53 pm

The demo I made uses script.

You could probably do it without script if you wanted to.

( I just like using script. )
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: Google Adsense [Bot] and 1 guest