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 / Help requested with making a cube turn

Author
Message
Mizipzor
20
Years of Service
User Offline
Joined: 24th May 2004
Location: Sweden
Posted: 30th May 2004 04:38
I think ive done something wrong. My temporary player character, a cube, moved just fine until a decided to make the code a bit easier to read and moved everything into a subroutine. Now it wont turn! Forward and backward movements works just fine.

Im using a camera system from the 3d monster hunt game and the cool tilt system from the binary moon hover racing game. Using DBP.

Btw, i dont seem to be able to figure out how i get those white code snippet boxes. Ive asked one person already but didnt really sorted it out even after he explained.

Anyways, source included, thanks in advance

Dreaming of creating a highly advanced AI mind
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 30th May 2004 06:02 Edited at: 30th May 2004 06:08
This line is incorrect for sure but haven't had time to test code.



Also instead of clicking the code button you can hold the alt key and s key before and after what you want to be in the snippet box

Should look like this
http://mapmasterz.com/untitled.bmp

"People don't fail ..... they stop trying." Specs. P4 2.8GHz 800 FSB | 512MB DDR333
GeForce FX 5200 AGP 256MB | Windows XP Pro Full
Mizipzor
20
Years of Service
User Offline
Joined: 24th May 2004
Location: Sweden
Posted: 30th May 2004 12:05 Edited at: 30th May 2004 12:06
Woa! I dont have all those buttons and smilies!

Anyways, im really stuck on this one, the problem should be that i somehow reset the playerA#, which is angle the player is facing, before the update is draws. I just cant figure out where...

Dreaming of creating a highly advanced AI mind
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 30th May 2004 12:16
instead of


try:


because you aren't updating the playerA# variable for when you rotate it in the tilt sub routin, this should work.

Mizipzor
20
Years of Service
User Offline
Joined: 24th May 2004
Location: Sweden
Posted: 30th May 2004 12:25
Thanks! I see i rotate it again at the end of the tilt sub and then im using the old playerA# whiout it been updated. Thanks alot pal!

Dreaming of creating a highly advanced AI mind
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 30th May 2004 20:08
Quote: "Woa! I dont have all those buttons and smilies! "


The buttons look to be from a custom XP skin and the smilies just seem to be a different colour because the colour depth is low in the pic.

Two strings walk into a bar. I'll have a pint says the first$%ASLDJ09920D"$"$D. Excuse my friend says the second, he isn't null terminated.
Mizipzor
20
Years of Service
User Offline
Joined: 24th May 2004
Location: Sweden
Posted: 30th May 2004 20:09
well... i meant... i dont have them! ... i have no buttons and no smilies

Dreaming of creating a highly advanced AI mind

Login to post a reply

Server time is: 2024-09-22 10:39:35
Your offset time is: 2024-09-22 10:39:35