Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   if (dontknow == "Particles") { player.help = true; } (https://forums.graalonline.com/forums/showthread.php?t=76814)

RyDaze 09-17-2007 03:22 AM

if (dontknow == "Particles") { player.help = true; }
 
Anywho if you didnt read the header, I need help with Particles. So could someone make a Tutorial? or Something??

;)

coreys 09-17-2007 03:38 AM

If I had a dollar for every thread title in this section of the forums like this one...

http://wiki.graal.net/index.php/Particle_Engine

PrinceOfKenshin 09-17-2007 03:44 AM

Quote:

Originally Posted by coreys (Post 1348264)
If I had a dollar for every thread title in this section of the forums like this one...

http://wiki.graal.net/index.php/Particle_Engine

aw you beat me to it =(

DustyPorViva 09-17-2007 03:49 AM

Sorry, but if that's the same page in the wiki I remember, it doesn't help. At all. It's not written to 'help', but more as a reference.

I've yet to find a good tutorial on the particle engine. So no need to go all over him about it.

Googi 09-17-2007 04:32 AM

Quote:

Originally Posted by DustyPorViva (Post 1348267)
Sorry, but if that's the same page in the wiki I remember, it doesn't help. At all. It's not written to 'help', but more as a reference.

It's good if you know how to script but don't know how to use the particle engine.

coreys 09-17-2007 03:09 PM

Quote:

Originally Posted by Googi (Post 1348273)
It's good if you know how to script but don't know how to use the particle engine.

Yeah. o_o

And if you don't know how to script, why would you be trying to learn particles before learning how to script? :3

Admins 09-17-2007 05:21 PM

Hmmm we should eventually copy all the v4.0 release notes to the wiki, they were containing a lot of information about the particles, e.g.
http://forums.graalonline.com/forums...ad.php?t=62877
(not sure if you can see that thread)

DustyPorViva 09-17-2007 06:31 PM

Well, personally, for me I learn by example.
That's my main problem with it, that it doesn't have a working example that I can mess around with.

EDIT: Just like the one in Stefan's link :)
That's what the wiki needs.

zokemon 09-17-2007 07:57 PM

I'll be happy to make an example.

MrAnonymous_P2P 09-18-2007 01:12 PM

I tried to learn particles first lol and failed miserably. I wouldn't try it kids.

coreys 09-18-2007 03:17 PM

1 Attachment(s)
PHP Code:

//#CLIENTSIDE
function onCreated() {
  
with (findImg(200)) {
    
// Falling leaves

    // Emitter attributes
    
layer 2;
    
player.xplayer.y;
    
emitter.delaymin 0.1;
    
emitter.delaymax 0.3;
    
emitter.nrofparticles 5;
    
emitter.emissionoffset = {-12, -1550};
    
emitter.checkbelowterrain true;

    
// Basic particle attributes
    
emitter.particle.lifetime 20;
    
emitter.particle.zoom 2;
    
emitter.particle.image "mal_particle_rain.gif";
    
emitter.particle.rotation = -degtorad(10);

    
// Movement
    
emitter.particle.zangle = -1;
    
emitter.particle.speed 15;
    
emitter.particle.alpha 1;
    
emitter.particle.mode 0;

    
emitter.addglobalmodifier("impulse"0.20.2"zangle""multiply"0.950.95);
    
emitter.addlocalmodifier("impulse"020,  "zoom""add", -1.5, -.25);
    
emitter.addlocalmodifier("once"00"angle""replace"degtorad(260), degtorad(230));
    
emitter.addlocalmodifier("once"00"x""add", -6464);
    
emitter.addlocalmodifier("once"00"zoom""replace"0.61.2);
    
emitter.addlocalmodifier("range"0100000"speed""add"33);
  }
  
setTimer(0.1);
}
function 
onTimeOut() {
  
this.findImg(200);
  
this.i.player.xthis.i.player.y;
  if (
this.i.emitter.nrofparticles 200)  this.i.emitter.nrofparticles++;
  
setTimer(0.1);


Here's an old emitter I made for rain.
Image attached.

I believe I emulated wind in there, it's an old backup though, so I'm not sure.

RyDaze 09-24-2007 06:51 AM

So.. that is basically against the rules of just posting the script... And if you didnt notice i asked for Tutorial not just a script.. I believe a tutorial is something that describes each action of a line.. So ya.. I really dont think thats a help, But thanks for trying..

DustyPorViva 09-24-2007 08:18 AM

Quote:

2. Similarly, do not just post whole scripts for people as a response to their difficulties. If you wish to post a wordy solution, then please feel free; however, please do not post things that people can just copy and paste. It isn't helping people to learn just by doing so. If you'd like to show off your scripts to others, post them in the Code Gallery subforum.
He didn't break any rules. He didn't post because you asked, he posted for strictly teaching purposes. You may not have asked for it, but others, like me, learn by examples. Only reason it's against the rules is if he provided a script for someone who asked for one when they clearly aren't going to try to learn it on their own.


All times are GMT +2. The time now is 02:32 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.