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 / How to move enemy object to player ?

Author
Message
Martin Donat
13
Years of Service
User Offline
Joined: 27th May 2011
Location: Czech Republic
Posted: 23rd Aug 2011 21:07
Hello, I want to make an enemy object (soldier or anything else) to move to player (like zombies), i dont know how to make them facing to the player and walking to him without troubles. I´m using this


But I have problem with this, if player looks somewhere else than on enemy (enemies), there are walking not to player, somewhere else. I want to make them walking to a player position, but I don´t know how ?
Please help me, somebady.

the leader of Mouseking studio

chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 23rd Aug 2011 22:34
Try point object 1,object position x(player),0,object position z(player)


Cheers.

I'm not a grumpy grandpa
Martin Donat
13
Years of Service
User Offline
Joined: 27th May 2011
Location: Czech Republic
Posted: 24th Aug 2011 09:54
Thanks, but this makes the object point down and move through terrain, I try to figure it out.

the leader of Mouseking studio

LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 24th Aug 2011 19:51


MummyKillerSLO
15
Years of Service
User Offline
Joined: 5th Jul 2009
Location: Object Position Y(ObjChair)
Posted: 25th Aug 2011 22:12
I wrote simple game, where player two is chasing you. Hope that helps!



Happy to having and using DarkBASIC Professional...
Martin Donat
13
Years of Service
User Offline
Joined: 27th May 2011
Location: Czech Republic
Posted: 27th Aug 2011 08:53
Thank, thank, thank, this problem is no longer exist.

the leader of Mouseking studio

MummyKillerSLO
15
Years of Service
User Offline
Joined: 5th Jul 2009
Location: Object Position Y(ObjChair)
Posted: 27th Aug 2011 12:32
No problem

Happy to having and using DarkBASIC Professional...

Login to post a reply

Server time is: 2024-11-24 01:36:27
Your offset time is: 2024-11-24 01:36:27