Multiple random problem

Talk about making games.

Multiple random problem

Postby Novice » Sat Sep 03, 2005 5:08 pm

Hi, im stuck again :oops:. I have a problem with using random time. The problem is next, in a random time a character is supposed to be destroyed and a random character should be created.
I manged just fine creating random characters with "anim= rand(5)" and if comands. The thing is im using clones and they all produce diferent animations but all at the same time , i used the random time from moon defender tutorial (DestroyTimer ,Create Timer rand(5000)+1000) but that dosent seem to woork, whenever i start the game all the clones switch to diferent animations but all at once.
I searched the forum but no help. This is realy anoying me if someone could please help that would be realy stress releaving. Tell me what am i doing wrong. Thanks in advance.
Why do i always get stuck?
User avatar
Novice
 
Posts: 399
Joined: Mon Aug 29, 2005 10:54 am
Location: Relative
Score: 5 Give a positive score

Postby makslane » Sat Sep 03, 2005 5:26 pm

The Moondefender tutorial uses a very old Game Editor version.
You can create random timers in a more simple way.

Look at: http://www.game-editor.com/docs/getting ... reatetimer
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Novice » Sat Sep 03, 2005 5:28 pm

Sorry bout taking space, i just saw that i can create random timers and it worked perfectly. Once again sorry. :oops:
Progress of my game goes like this because of my programing:
1.day: 30%
2.day:50%
3.day:back to 10%
etc.
And thaks Makslane for the quick response. You are very helpful. :D
Why do i always get stuck?
User avatar
Novice
 
Posts: 399
Joined: Mon Aug 29, 2005 10:54 am
Location: Relative
Score: 5 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest