Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

3 Dimensional Chat / What am I doin' wrong?!?!?

Author
Message
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 11th May 2004 00:02
what am i doing wrong with this code. It is supposed to make 50 explosions happen at random locations on the screen. Instead, it makes them all happen at the same place.This is for DBC(the resources all come with DB).

Thanks in advance

zircher
22
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 11th May 2004 01:00 Edited at: 11th May 2004 01:03
randomize 12

This tells the program to constantly re-seed the random number sequence with the same value. Not good.

Try RANDOMIZE TIMER() and use it only once near the beginning of your program.

You're also loading the model and sound 50 times when you only need to load each once and clone or play as needed.
--
TAZ

[edit for typos]

BTW, this is NOT the proper place to ask that question. Try the new comer forum.

Login to post a reply

Server time is: 2025-06-28 19:11:42
Your offset time is: 2025-06-28 19:11:42