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 / were did my cubes go?

Author
Message
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 19th Feb 2004 14:49
Hi all

Why when I add in `make object triangle` do my cubes disapper, were did they go or am I using this command wrong?

In Space No One can Hear You Scream! (When your comm Line is cut?)
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 19th Feb 2004 15:27
all objects were created at 0,0,0 and so the triangle was inside the other cubes. here it is above them now.




comando 300
21
Years of Service
User Offline
Joined: 23rd Nov 2003
Location:
Posted: 19th Feb 2004 16:15
But there's a bug.When you run the program and leave it a while it's says "the angle must be specified between 0 to 360 degrees"

CURRENT PROJECT: RETRO PAC-MAN
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 19th Feb 2004 20:17
thats not a bug, what happens is that eventualy the angle is some over-large value (prolly 360.1 degrees..not sure on that) and the compilers algorythm that uses angles to position objects breaks down and causes an error, just use the wrapvalue command to make sure the angle never goes above 360, this was just an example, Indi didn`t want to clutter it with extra commands that had no bearing on the question, just add....

YROTATE OBJECT 1,wrapvalue(OBJECT ANGLE Y(1)+0.1)
YROTATE OBJECT 2,wrapvalue(OBJECT ANGLE Y(2)+0.1)

in place of the original lines and it should work forever, cheers.

Mentor.

System spec : Pentium 3.0Ghz, 512MB DDR, 2x160Gb HD (using icewave hd coolers ), DVD RW/CD RW (all modes), multimedia front panel, 6 way surround sound, ATI radeon 9800Pro 128mb.
comando 300
21
Years of Service
User Offline
Joined: 23rd Nov 2003
Location:
Posted: 19th Feb 2004 20:38
ok

CURRENT PROJECT: RETRO PAC-MAN
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 20th Feb 2004 00:31
Quote: "were did my cubes go?"


I stole them for my game

Mhwa ha ha haaaaaaaaaaaaa

spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 20th Feb 2004 00:47
Correction: CMC 101 stole them for his game

Boo!
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 20th Feb 2004 01:23 Edited at: 20th Feb 2004 01:23
the wrapvalue command will solve that problem. edit: oops mentor already covered it


HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 20th Feb 2004 01:43
cheers all and thank for laughs

In Space No One can Hear You Scream! (When your comm Line is cut?)

Login to post a reply

Server time is: 2024-11-26 05:48:30
Your offset time is: 2024-11-26 05:48:30