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.

Newcomers DBPro Corner / hey can someone look at this?

Author
Message
Osiris
21
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 11th Oct 2004 11:11


all of the spheres come out in a straight line forever and i want them to come out in all directions and bounce off of the edges of the screen for like five minuets or so can u help plz

anyone can be a hero, but a soldier can be a hero five minuets longer....
Osiris
21
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 11th Oct 2004 11:30
should i set it on a random generator...but how would i do that ive got myself all confused now lol

anyone can be a hero, but a soldier can be a hero five minuets longer....
DarKLE
22
Years of Service
User Offline
Joined: 16th Jun 2004
Location:
Posted: 11th Oct 2004 11:47
turn on collision detection

http://www.freewebs.com/warhammered/image2.jpg
Osiris
21
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 12th Oct 2004 01:19
how do i do that?

anyone can be a hero, but a soldier can be a hero five minuets longer....
Xander
23
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 12th Oct 2004 03:51
Collision detection does not work with the edges of the screen...it only works with other 3D objects. In the following code, I used object screen x() and object screen y() to detect if the object goes off the edges of the screen.

Try this:



I can't test it though...so tell me if it doesn't work.

Xander Moser - Bolt Software - Firewall
Osiris
21
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 12th Oct 2004 06:30
these two dont work

Quote: "if object screen x(a)>screen width() or object screen x(a)<0 then yrotate object a,wrapvalue(180-object angle(a))
if object screen y(a)<0 or object screen y(a)>screen height() then yrotate object a,wrapvalue((180-(object angle(a)-90))+90)
"

thanks tho

anyone can be a hero, but a soldier can be a hero five minuets longer....
Osiris
21
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 12th Oct 2004 06:43
it says

Quote: "cannot determain parameter type of 'object angle(a)' at line 29"


anyone can be a hero, but a soldier can be a hero five minuets longer....
Osiris
21
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 12th Oct 2004 07:02
anyone...

anyone can be a hero, but a soldier can be a hero five minuets longer....
Osiris
21
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 12th Oct 2004 08:09
nobody

anyone can be a hero, but a soldier can be a hero five minuets longer....
PoHa!84
22
Years of Service
User Offline
Joined: 2nd Oct 2003
Location: To your left.
Posted: 12th Oct 2004 08:43
why not position plains at the edge of the camera's field of view, and check for collision with them?

something
ALPHA ZERO PRODUCTIONS
22
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Mom ! I forgot where we live !
Posted: 12th Oct 2004 08:47
edit button



Osiris
21
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 12th Oct 2004 09:12
lol yeah just wanted to keep it up top so someone would see it

@PoHa!84 i dont know how to do that thats why i asked lol

anyone can be a hero, but a soldier can be a hero five minuets longer....
Xander
23
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 12th Oct 2004 11:16
Oops, I forgot to add the "x" and "y"...here is a fixed version...



Xander Moser - Bolt Software - Firewall
Osiris
21
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 13th Oct 2004 01:19
oh cool thanks bolt

anyone can be a hero, but a soldier can be a hero five minuets longer....
Osiris
21
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 13th Oct 2004 06:34
how can make the come out all angles and directions with that code and have them bounce around because that just makes a bid circle of them.

of and i want them all to rotate but just the firse one does the rotating

anyone can be a hero, but a soldier can be a hero five minuets longer....
Osiris
21
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 13th Oct 2004 07:01
any help would be appreciated

anyone can be a hero, but a soldier can be a hero five minuets longer....
Cian Rice
22
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 13th Oct 2004 07:02
You gotta wait longer than 1/2 and hour.

There is only one way to package shaolin: Shaolin Soccer...
Ilya
22
Years of Service
User Offline
Joined: 10th Aug 2003
Location:
Posted: 13th Oct 2004 07:13
randomize timer()
`make object
rotate object rnd(360),rnd(360),0
Osiris
21
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 13th Oct 2004 09:45
ilya does that have to be after they all come out because im getting an error that says it dosent follow synax ur somethin like that

anyone can be a hero, but a soldier can be a hero five minuets longer....
Osiris
21
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 13th Oct 2004 14:15
ok now that bolt helped me with collision i think casn some one explain to me how to make them come out of all diections?

anyone can be a hero, but a soldier can be a hero five minuets longer....
Osiris
21
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 14th Oct 2004 01:30
anyone there

anyone can be a hero, but a soldier can be a hero five minuets longer....
Xander
23
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 14th Oct 2004 02:59
Please wait at least a day before posting three times in a row...

To make them come out in all directions, just do what Ilya suggested. Rotate them randomly when they are created. His code didn't work when you pasted it in because he forgot the object number...



Is that what you want?

Xander Moser - Bolt Software - Firewall
Osiris
21
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 14th Oct 2004 07:00
Thanks bolt it only came out in 2d not 3d but im going to angle the camera so its top view...any way to make it faster...do i have to mess with the sync rate

anyone can be a hero, but a soldier can be a hero five minuets longer....
Osiris
21
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 14th Oct 2004 08:53
bolt?...ilya?...anyone?

anyone can be a hero, but a soldier can be a hero five minuets longer....
Xander
23
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 14th Oct 2004 10:11
C'mon, you didn't even wait 2 hours between those posts! Just wait a day or two...

Actually, the collision will probably screw up if you move the camera at an angle. If you do, replace my collision stuff with classic collision. Create walls and have the spheres bounce off of those. For collision examples, look at the ones that come with DB.

This will run as fast as possible while still keeping everything moving at the same speed:



Xander Moser - Bolt Software - Firewall
Ilya
22
Years of Service
User Offline
Joined: 10th Aug 2003
Location:
Posted: 14th Oct 2004 10:16
I ment

rotate object obj num,rnd(360),rnd(360),0
Osiris
21
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 15th Oct 2004 01:20
sry ill wait and thanks bolt and ilya

anyone can be a hero, but a soldier can be a hero five minuets longer....

Login to post a reply

Server time is: 2026-07-26 01:00:10
Your offset time is: 2026-07-26 01:00:10