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.

DarkBASIC Discussion / 3D Animation Problems

Author
Message
DDD Productions
21
Years of Service
User Offline
Joined: 14th Mar 2004
Location: On Earth
Posted: 15th Mar 2004 21:40
I have some code and before I put sync in. The car would animate perfectly (even though it was shacky). But now, the car does not animate. However, it will animate when I press the down and left keys. Why?

D.D.D Productions
Specializing in game creation
Code Ninja
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: AZ, U.S.
Posted: 15th Mar 2004 21:45
mainly cuz you've set it to animate when you press those keys and stop when you havn't...

DragnBreth
of
Dragael Software
DDD Productions
21
Years of Service
User Offline
Joined: 14th Mar 2004
Location: On Earth
Posted: 15th Mar 2004 21:53
I KNOW THAT!!!
But I've done the same for all the other keys and the car doesn't animate when I press the other keys.

D.D.D Productions
Specializing in game creation
Code Ninja
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: AZ, U.S.
Posted: 15th Mar 2004 22:00
woah, dude, cool it.I'll check over your code again and see if i can find out what yer problem is.

DragnBreth
of
Dragael Software
Code Ninja
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: AZ, U.S.
Posted: 15th Mar 2004 22:04
srry, man. can't find anything wrong with it. you said it happened when you put in the sync, right? why don't you leave it out then?

srry man, best advice i can give right now...

DragnBreth
of
Dragael Software
DDD Productions
21
Years of Service
User Offline
Joined: 14th Mar 2004
Location: On Earth
Posted: 16th Mar 2004 21:24
I SOLVED IT!!!
The reason it didn't work was because if one of the keys were pressed (evaluating to 1) then the car would be told to animate. BUT, the next evaluation would turn out to be 0 causing it to immediately stop before sync could refresh the screen. The reason it would work with the down and left keys is because it was the last condition to be evaluated. To solve the problem, just remove all stop object commands except for when you press the up key.

D.D.D Productions
Specializing in game creation
Code Ninja
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: AZ, U.S.
Posted: 16th Mar 2004 21:30
nice. two thumbs up. srry i couldn't've been of more help...

DragnBreth
of
Dragael Software

Login to post a reply

Server time is: 2025-05-23 03:39:05
Your offset time is: 2025-05-23 03:39:05