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 / light following player

Author
Message
Turtle120902
5
Years of Service
User Offline
Joined: 25th Jan 2019
Location:
Posted: 25th Jan 2019 18:22
hi how do i make a light follow a player?
chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 26th Jan 2019 00:49
Just position the light in the same coord as the player .
I'm not a grumpy grandpa
Turtle120902
5
Years of Service
User Offline
Joined: 25th Jan 2019
Location:
Posted: 1st Feb 2019 17:22
thanks that is not what i asked for but thanks
gamehazer
5
Years of Service
User Offline
Joined: 2nd May 2018
Location:
Posted: 3rd Feb 2019 17:13
player is the number of your player object, you might want to add a incress to y value. like this= position light 1 Positionx,Positiony+30,Positionz


chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 6th Feb 2019 11:22
@Turtle sorry for having been so brief in the explanations . Here's a piece of code that shows you better what I mean. You can decide if the light must stop before reaching the player coords. Just let me know if that is ok for you.

Cheers.

I'm not a grumpy grandpa

Login to post a reply

Server time is: 2024-04-25 09:31:21
Your offset time is: 2024-04-25 09:31:21