Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-30-2011, 04:44 PM
Astram Astram is offline
Era iPhone PR
Astram's Avatar
Join Date: Aug 2010
Posts: 324
Astram can only hope to improve
Send a message via AIM to Astram
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!
__________________
-Toad
The worlds biggest Toad fan...
Era iPhone FTW!


Reply With Quote
  #2  
Old 12-30-2011, 05:11 PM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
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.
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote
  #3  
Old 12-30-2011, 05:35 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
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
__________________
MEEP!
Reply With Quote
  #4  
Old 12-30-2011, 05:36 PM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
Yes that particle maker works perfectly, I was trying to find the link actually xD
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:00 PM.


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