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 / Problem, monster rotated.

Author
Message
NazguL86
20
Years of Service
User Offline
Joined: 14th Feb 2005
Location:
Posted: 13th May 2005 22:55
Hi all,
i'm trying to make an FPS with DBC, in many parts of the game i closely followed the tutorial "monster hunts", but i have a problem.
My enemy, is always rotated like of 180° in front of me, but it moves, and it shoots in the right way. I saw the piece of code from the turorial, and it's the same, but i can't understand why it's rotated.
I tried in many ways to turn it in the right direction, but i always falied .
Would you please help me?
The interested piece of code should be in the MonsterAI subroutine, i think it's a "point object" or "set object to object orientation" that is wrong.

here is the full code:


or just the piece of code that i think is wrong:


thank you!

Attachments

Login to view attachments
NazguL86
20
Years of Service
User Offline
Joined: 14th Feb 2005
Location:
Posted: 13th May 2005 22:58
i also attached in the precedent post, an image from the game.
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 13th May 2005 23:58
Try doing something like

yrotate monsterObj, 180
offset object monsetObj

right after you load the monster.

Desktop: AMD Athlon XP2800+,Radeon 9800 128MB, 1GB DDR RAM
Laptop: AMD Athlon 64M 3000+,Mobility Radeon 9700 128MB, 512MB DDR RAM
NazguL86
20
Years of Service
User Offline
Joined: 14th Feb 2005
Location:
Posted: 14th May 2005 04:04
mm
"offset object" doesn't exist in DBC O_o
there's just offest limb/sprite/limb...

anyway the only instruction "yrotate object n,180" doesn't work, the monster it's always watching in the opposite side, i think that when the MonsterAI sub is called, it rotates the monster in the wrong way...

any other helps are much appreciated
hyrichter
21
Years of Service
User Offline
Joined: 15th Feb 2004
Location: Arizona
Posted: 14th May 2005 04:16
The command is "fix object pivot" Rotate your monster when you first load it, and then call fix object pivot.

NazguL86
20
Years of Service
User Offline
Joined: 14th Feb 2005
Location:
Posted: 14th May 2005 22:37
oh tnx man, it perfectly works !!
thanks

Login to post a reply

Server time is: 2025-05-23 06:31:47
Your offset time is: 2025-05-23 06:31:47