Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by 7th_zorro. 04/27/24 04:42
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Quad), 773 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: The Ultimate Dynamic Light Script [Re: Orange Brat] #41255
03/28/05 05:38
03/28/05 05:38
Joined: Aug 2004
Posts: 14
G
Greenmonkey824 Offline
Newbie
Greenmonkey824  Offline
Newbie
G

Joined: Aug 2004
Posts: 14
Quote:


This script should fulfill your every need except movement.





Meaning if the entity I attach the light to moves, the script won't work?

Re: The Ultimate Dynamic Light Script [Re: Greenmonkey824] #41256
03/28/05 08:06
03/28/05 08:06
Joined: Aug 2000
Posts: 7,490
O
Orange Brat Offline OP

Senior Expert
Orange Brat  Offline OP

Senior Expert
O

Joined: Aug 2000
Posts: 7,490
If you attach it to something then of course it will move. I meant that my script doesn't provide any built in movement.


My User Contributions master list - my initial post links are down but scroll down page to find list to active links
Re: The Ultimate Dynamic Light Script [Re: Orange Brat] #41257
03/28/05 08:19
03/28/05 08:19
Joined: Aug 2002
Posts: 3,258
Mainz
oliver2s Offline
Expert
oliver2s  Offline
Expert

Joined: Aug 2002
Posts: 3,258
Mainz
Does the script works right in this situation: You have 10 dynamic lights very near behind the camera. And you have 2 dynamic light far away in front of the camera. Does the script switch on the 2 light in front of?

Re: The Ultimate Dynamic Light Script [Re: oliver2s] #41258
03/28/05 08:41
03/28/05 08:41
Joined: Aug 2000
Posts: 7,490
O
Orange Brat Offline OP

Senior Expert
Orange Brat  Offline OP

Senior Expert
O

Joined: Aug 2000
Posts: 7,490
It doesn't take into account what's in the view. You can either have an always on light or one that can be switched on and off depending on how far away it is from the player(using vec_dist).

Code:

if((vec_dist(player.x, my.x) < my.distToggle && my.alwaysOn == off) ||(my.alwaysOn == on))




My User Contributions master list - my initial post links are down but scroll down page to find list to active links
Re: The Ultimate Dynamic Light Script [Re: Orange Brat] #41259
07/01/05 20:26
07/01/05 20:26
Joined: Jul 2003
Posts: 592
SLC, UT
prophet Offline
User
prophet  Offline
User

Joined: Jul 2003
Posts: 592
SLC, UT
Why am I getting an error with the cast being an undefined variable?


The attempt at a one man show. http://www.mutsoftware.com
Re: The Ultimate Dynamic Light Script [Re: prophet] #41260
07/01/05 20:46
07/01/05 20:46
Joined: Sep 2004
Posts: 772
AndrewSwallow Offline
User
AndrewSwallow  Offline
User

Joined: Sep 2004
Posts: 772
Is there a screenshot you can post so everyone can see without setting it up?

thanks
andrewds


Northern Aspire : northernaspire.com
Re: The Ultimate Dynamic Light Script [Re: prophet] #41261
07/01/05 20:49
07/01/05 20:49
Joined: Aug 2000
Posts: 7,490
O
Orange Brat Offline OP

Senior Expert
Orange Brat  Offline OP

Senior Expert
O

Joined: Aug 2000
Posts: 7,490
Quote:

Why am I getting an error with the cast being an undefined variable?




The my.cast part? Make sure you have the newest version of A6.


My User Contributions master list - my initial post links are down but scroll down page to find list to active links
Re: The Ultimate Dynamic Light Script [Re: Orange Brat] #41262
07/01/05 23:18
07/01/05 23:18
Joined: Apr 2002
Posts: 1,867
N
Neuro Offline
Serious User
Neuro  Offline
Serious User
N

Joined: Apr 2002
Posts: 1,867
I cant seem to get any light to show up. Is there a specific settings I'm suppose to have?


The Wii Effect - a look at Nintendo's epidemic
Re: The Ultimate Dynamic Light Script [Re: Neuro] #41263
07/03/05 04:45
07/03/05 04:45
Joined: Jul 2003
Posts: 592
SLC, UT
prophet Offline
User
prophet  Offline
User

Joined: Jul 2003
Posts: 592
SLC, UT
Need to probably remove the random code and have my.lightrange = 100 or something like that.


The attempt at a one man show. http://www.mutsoftware.com
Re: The Ultimate Dynamic Light Script [Re: prophet] #41264
07/03/05 04:51
07/03/05 04:51
Joined: Jul 2003
Posts: 592
SLC, UT
prophet Offline
User
prophet  Offline
User

Joined: Jul 2003
Posts: 592
SLC, UT
I was wrong, I am trying to figure that out now. Got the cast fixed with an update though.


The attempt at a one man show. http://www.mutsoftware.com
Page 2 of 3 1 2 3

Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1