Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Particles Help (https://forums.graalonline.com/forums/showthread.php?t=134265457)

Astram 12-30-2011 04:44 PM

Particles Help
 
Well, I was browsing the forums today and couldn't find anything relatively helpful for me learning particles. Basically if anyone has any documentation or any ideas you want to throw in to this thread, please do so. Thanks! :)

Gunderak 12-30-2011 05:11 PM

Particles are a little tricky.
Do something like this.
PHP Code:

function onCreated(){
  
with(findimg(200)){
    
image "block.png";
      
with(emitter){
         
speed 5//The movement speed
         
emitautomaticly true//Makes it emit by its self
         
lifetime 5//How long a particle lives for
         //look up addlocalmodifier in rc script help I can't remember it.
         
addlocalmodifier("range"01"alpha""subtract" 0.05);
         
//It's something like that
         
emit();
       }
    }


Just play around with the add modifiers and change the variables you're editing until you get something you like.

callimuc 12-30-2011 05:35 PM

I would suggest you to mess around with already done particles (like from testbed). Helps to understand it.
Also use this script and create some particles with that, doesn´t matter how they look like. Than get the code and also mess around with that. Should help for the beginning ;)

Gunderak 12-30-2011 05:36 PM

Yes that particle maker works perfectly, I was trying to find the link actually xD


All times are GMT +2. The time now is 04:27 AM.

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