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 / rotation help

Author
Message
sprite
18
Years of Service
User Offline
Joined: 22nd Apr 2006
Location:
Posted: 13th Apr 2008 02:15 Edited at: 13th Apr 2008 18:45
Hi all

I found and edit this code to fit my program. The problem I'm having is the zombies rotates all the time. They look like walking spinning tops. Its very funny to watch but not what I'm aimming for. I want the zombie to point at the player.


Thanks for your time.

I'll add something later on.
KISTech
16
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 13th Apr 2008 20:55
x# = object position x(plr)
y# = object position y(plr)
z# = object position z(plr)

point object zombie, x#, y#, z#

This will simply point the zombie at the player.

sprite
18
Years of Service
User Offline
Joined: 22nd Apr 2006
Location:
Posted: 13th Apr 2008 21:58
Thanks KISTech that sorted the spinning top problem. However the zombies are a bit pissed off from too much spinning they have there backs to me.

I'll add something later on.
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 13th Apr 2008 23:01
add this when you load the zombie model:

yrotate obect Zombie, 180.0
fix object pivot Zombie

Virtual Nomad
AMD XP 1800+ (~1.6 Ghz) / 1.5 GB RAM
ATI Radeon 8700LE 128 MB / Windows XP
sprite
18
Years of Service
User Offline
Joined: 22nd Apr 2006
Location:
Posted: 14th Apr 2008 02:15
Thank you Virtual Nomad much better then the SET OBJECT TO OBJECT ORIENTATION command I was using. Sometimes caused my zombies to disapper off the map.

I'll add something later on.

Login to post a reply

Server time is: 2024-11-25 06:30:33
Your offset time is: 2024-11-25 06:30:33