Gamestudio Links
Zorro Links
Newest Posts
zorro license, IB connection
by miwok. 12/06/23 16:32
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
6 registered members (miwok, AndrewAMD, TipmyPip, 3run, Quad, 1 invisible), 645 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
blume effect script #246216
01/14/09 08:15
01/14/09 08:15
Joined: Jan 2009
Posts: 8
A
anomily01 Offline OP
Newbie
anomily01  Offline OP
Newbie
A

Joined: Jan 2009
Posts: 8
i wrote this a little while ago, and since then i've forgotten a lot of the stuff i learned so idk if this is correct. what do you think?:

bmap blume_bmp = <blume>;
var v_trace;
v_trace.x = 1;
v_trace.y = 1;
v_trace.z = 1000;

function find_blme()
{
while(1);
{
trace_mode = scan_texture, use_box, ignore_you;
trace (camera.pos, v_trace);
var cam_p = camera.pos;
vec_set(temp, target);
if(tex_light > 240);
{
var blme = vec_to_screen(temp, camera);
var trcedst = vec_dist(temp, cam_p);
if(vec_dist(temp, cam_p)>300)
{
var part_size = part_size+ 2;
}
if(vec_dist(temp, cam_p)>260 && <300)
{
var part_size = part_size+ 1.5;
}
if(vec_dist(temp, cam_p)>220 && <260)
{
var part_size = part_size+ 1;
}
if(vec_dist(temp, cam_p)<220)
{
var part_size = part_size+ 0.5;
}
part_size=part_size+ ((4/3)*trcedst);
function part_func()
{
my.bmap = blume_bmp;
my.size = part_size;
my.transparent = on;
my.bright = on;
my.flare = on;
my.x = temp.x;
my.y = temp.y;
my.alpha = skill8;
my.function = find_blme;
if(blme == o);
{
my.lifespan = 0;
}
}
effect(part_func(), 1, blme, null);
}
else
{
var blme = 0;
}
v_trace.x = v_trace.x + 1;
if(v_trace.x > 800);
{
v_trace.x = 1;
v_trace.y = v_trace.y + 1;
}
if(v_trace.y > 600);
{
v_trace.y = 1;
}
}
}

/////put in main

while(1);
{
effect(part_func, 1, my.pos, null);
}

Re: blume effect script [Re: anomily01] #248451
01/26/09 23:02
01/26/09 23:02
Joined: Aug 2005
Posts: 1,230
M
MichaelGale Offline
Serious User
MichaelGale  Offline
Serious User
M

Joined: Aug 2005
Posts: 1,230
a. what is it supposed to do?
b. why don't you test it?
c. looking at the first line already, no it's not correct.


Your friendly mod is at your service.
Re: blume effect script [Re: MichaelGale] #258771
04/02/09 03:06
04/02/09 03:06
Joined: Jan 2009
Posts: 8
A
anomily01 Offline OP
Newbie
anomily01  Offline OP
Newbie
A

Joined: Jan 2009
Posts: 8
its is supposed to trace from a point on the screen and scan to see the brightness of the object hit by the trace, then if it is bright enough it is supposed to create a particle effect at that point, effectively making a "bloom" effect.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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