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 Professional Discussion / how the mobs will my follow my character?

Author
Message
Hello Everyone !
14
Years of Service
User Offline
Joined: 1st Sep 2011
Location:
Posted: 6th Nov 2011 08:55
Hi guys Its me again.. My problem is . How the mobs will follow my character every time it passes by to the character? Help will be much appreciated

i have a problem in darkbasic codes. pls help me
basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 6th Nov 2011 09:20
using 2D: rotate using a vector then move foreward.

3D: point object objno,x,y,z
move object objno,step.

is it what you're looking for?

for professional results look at dark AI.
Hodgey
16
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 6th Nov 2011 09:32
I wrote this up a while back.



Play around with it until you get the results you're looking for.

Hello Everyone !
14
Years of Service
User Offline
Joined: 1st Sep 2011
Location:
Posted: 6th Nov 2011 09:32
im using 2d dude. dark AI? i have no time for Dark AI. im just using sprites. Can u elaborate your idea dude?

i have a problem in darkbasic codes. pls help me
Hello Everyone !
14
Years of Service
User Offline
Joined: 1st Sep 2011
Location:
Posted: 6th Nov 2011 12:38
It has an error with this code





i have a problem in darkbasic codes. pls help me
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 6th Nov 2011 18:52
Hi there.
@Hello everyone. Try this piece of code. It keep following mouse...you can change mouse coords. by enemyX enemyY .



Cheers.

I'm not a grumpy grandpa
Hodgey
16
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 6th Nov 2011 20:44
Quote: "It has an error with this code"

It works fine on this end. Which version of DBP are you using?

Hello Everyone !
14
Years of Service
User Offline
Joined: 1st Sep 2011
Location:
Posted: 7th Nov 2011 03:40 Edited at: 7th Nov 2011 03:42
Hodgey. I've just downloaded it last year the free Darkbasic Pro online. By the way dude thanks for your help and Chafari thanks also. It really helps me a lot . God Bless guys

i have a problem in darkbasic codes. pls help me
Hodgey
16
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 7th Nov 2011 05:24
Quote: "By the way dude thanks for your help"

I'm guessing it works then? Well you're welcome.

@ Chafari: Once again, teamwork

Login to post a reply

Server time is: 2026-07-10 11:24:45
Your offset time is: 2026-07-10 11:24:45